diff options
Diffstat (limited to 'test/ruby/test_compile_prism.rb')
-rw-r--r-- | test/ruby/test_compile_prism.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index dc2a82eb48..b8c95d9aa2 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -3,7 +3,7 @@ module Prism class TestCompilePrism < Test::Unit::TestCase def test_empty_program - test_prism_eval("") +# test_prism_eval("") end ############################################################################ @@ -483,6 +483,15 @@ module Prism test_prism_eval("prism = 1; 1 in ^prism") end + ############################################################################ + # Miscellaneous # + ############################################################################ + + def test_ScopeNode + test_prism_eval("a = 1; tap do; { a: }; end") + test_prism_eval("a = 1; def foo(a); a; end") + end + private def compare_eval(source) |