summaryrefslogtreecommitdiff
path: root/spec/unit/pops/parser/parse_calls_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/pops/parser/parse_calls_spec.rb')
-rw-r--r--spec/unit/pops/parser/parse_calls_spec.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/unit/pops/parser/parse_calls_spec.rb b/spec/unit/pops/parser/parse_calls_spec.rb
index 115c160d6..ee80544f5 100644
--- a/spec/unit/pops/parser/parse_calls_spec.rb
+++ b/spec/unit/pops/parser/parse_calls_spec.rb
@@ -66,7 +66,7 @@ describe "egrammar parsing function calls" do
# For egrammar where a bare word can be a "statement"
it "$a = foo bar # illegal, must have parentheses" do
- dump(parse("$a = foo bar")).should == "(block (= $a foo) bar)"
+ dump(parse("$a = foo bar")).should == "(block\n (= $a foo)\n bar\n)"
end
context "in nested scopes" do
@@ -94,8 +94,11 @@ describe "egrammar parsing function calls" do
end
it "$a.foo |$x|{ }" do
- dump(parse("$a.foo |$x|{ $b = $x}")).should ==
- "(call-method (. $a foo) (lambda (parameters x) (block (= $b $x))))"
+ dump(parse("$a.foo |$x|{ $b = $x}")).should == [
+ "(call-method (. $a foo) (lambda (parameters x) (block",
+ " (= $b $x)",
+ ")))"
+ ].join("\n")
end
end
end