diff options
Diffstat (limited to 'test/ruby/test_rubyvm.rb')
| -rw-r--r-- | test/ruby/test_rubyvm.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/ruby/test_rubyvm.rb b/test/ruby/test_rubyvm.rb index a6d0b1a727..225cb45f33 100644 --- a/test/ruby/test_rubyvm.rb +++ b/test/ruby/test_rubyvm.rb @@ -1,14 +1,13 @@ # frozen_string_literal: false require 'test/unit' +require_relative '../lib/parser_support' class TestRubyVM < Test::Unit::TestCase def test_stat assert_kind_of Hash, RubyVM.stat - assert_kind_of Integer, RubyVM.stat[:global_constant_state] RubyVM.stat(stat = {}) assert_not_empty stat - assert_equal stat[:global_constant_state], RubyVM.stat(:global_constant_state) end def test_stat_unknown @@ -18,12 +17,12 @@ class TestRubyVM < Test::Unit::TestCase def parse_and_compile script = <<~RUBY - a = 1 + _a = 1 def foo - b = 2 + _b = 2 end 1.times{ - c = 3 + _c = 3 } RUBY @@ -34,6 +33,9 @@ class TestRubyVM < Test::Unit::TestCase end def test_keep_script_lines + omit if ParserSupport.prism_enabled? + pend if ENV['RUBY_ISEQ_DUMP_DEBUG'] # TODO + prev_conf = RubyVM.keep_script_lines # keep |
