summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_ast.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb
index faa989c2fb..b91880be6d 100644
--- a/test/ruby/test_ast.rb
+++ b/test/ruby/test_ast.rb
@@ -576,6 +576,7 @@ dummy
end
end
STR
+ assert_nil($!)
assert_equal(:SCOPE, node.type)
end
@@ -965,6 +966,7 @@ dummy
def assert_error_tolerant(src, expected)
node = RubyVM::AbstractSyntaxTree.parse(src, error_tolerant: true)
+ assert_nil($!)
str = ""
PP.pp(node, str, 80)
assert_equal(expected, str)