mirror of
https://gitea.invidious.io/iv-org/shard-ameba.git
synced 2024-08-15 00:53:29 +00:00
Fix newly found issues
This commit is contained in:
parent
d71091a40c
commit
7b3c814914
7 changed files with 8 additions and 8 deletions
|
@ -48,7 +48,7 @@ module Ameba::AST
|
|||
it "assigns the variable (creates a new assignment)" do
|
||||
variable = Variable.new(var_node, scope)
|
||||
variable.assign(assign_node, scope)
|
||||
variable.assignments.any?.should be_true
|
||||
variable.assignments.empty?.should be_false
|
||||
end
|
||||
|
||||
it "can create multiple assignments" do
|
||||
|
@ -64,7 +64,7 @@ module Ameba::AST
|
|||
variable = Variable.new(var_node, scope)
|
||||
variable.assign(as_node("foo=1"), scope)
|
||||
variable.reference(var_node, scope)
|
||||
variable.references.any?.should be_true
|
||||
variable.references.empty?.should be_false
|
||||
end
|
||||
|
||||
it "adds a reference to the scope" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue