diff options
Diffstat (limited to 'test/test_pp.rb')
-rw-r--r-- | test/test_pp.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_pp.rb b/test/test_pp.rb index 4fcb8df4b0..a3e661a9b5 100644 --- a/test/test_pp.rb +++ b/test/test_pp.rb @@ -173,11 +173,12 @@ class PPCycleTest < Test::Unit::TestCase end def test_withinspect + omit if RUBY_ENGINE == "jruby" a = [] a << HasInspect.new(a) assert_equal("[<inspect:[...]>]\n", PP.pp(a, ''.dup)) assert_equal("#{a.inspect}\n", PP.pp(a, ''.dup)) - end unless RUBY_VERSION < "2.7" # temporary mask to test on JRuby 9.3 (2.6 equivalent) + end def test_share_nil begin @@ -197,6 +198,7 @@ class PPSingleLineTest < Test::Unit::TestCase end def test_hash_in_array + omit if RUBY_ENGINE == "jruby" assert_equal("[{}]", PP.singleline_pp([->(*a){a.last.clear}.ruby2_keywords.call(a: 1)], ''.dup)) assert_equal("[{}]", PP.singleline_pp([Hash.ruby2_keywords_hash({})], ''.dup)) end |