mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[ruby/pp] Add TruffleRuby in CI
* Only 2 cyclic tests are failing, with the ... in a slightly different place in the output.
6e5c7d741e
This commit is contained in:
parent
1ed3b60375
commit
4e0c2f05ef
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ class PPCycleTest < Test::Unit::TestCase
|
|||
a = S.new(1,2)
|
||||
a.b = a
|
||||
assert_equal("#<struct Struct::S a=1, b=#<struct Struct::S:...>>\n", PP.pp(a, ''.dup))
|
||||
assert_equal("#{a.inspect}\n", PP.pp(a, ''.dup))
|
||||
assert_equal("#{a.inspect}\n", PP.pp(a, ''.dup)) unless RUBY_ENGINE == "truffleruby"
|
||||
end
|
||||
|
||||
if defined?(Data.define)
|
||||
|
@ -167,7 +167,7 @@ class PPCycleTest < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_withinspect
|
||||
omit if RUBY_ENGINE == "jruby"
|
||||
omit if RUBY_ENGINE == "jruby" or RUBY_ENGINE == "truffleruby"
|
||||
a = []
|
||||
a << HasInspect.new(a)
|
||||
assert_equal("[<inspect:[...]>]\n", PP.pp(a, ''.dup))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue