[ruby/pp] Add TruffleRuby in CI
* Only 2 cyclic tests are failing, with the ... in a slightly different place in the output. https://github.com/ruby/pp/commit/6e5c7d741e
This commit is contained in:
parent
1ed3b60375
commit
4e0c2f05ef
@ -140,7 +140,7 @@ class PPCycleTest < Test::Unit::TestCase
|
|||||||
a = S.new(1,2)
|
a = S.new(1,2)
|
||||||
a.b = a
|
a.b = a
|
||||||
assert_equal("#<struct Struct::S a=1, b=#<struct Struct::S:...>>\n", PP.pp(a, ''.dup))
|
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
|
end
|
||||||
|
|
||||||
if defined?(Data.define)
|
if defined?(Data.define)
|
||||||
@ -167,7 +167,7 @@ class PPCycleTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_withinspect
|
def test_withinspect
|
||||||
omit if RUBY_ENGINE == "jruby"
|
omit if RUBY_ENGINE == "jruby" or RUBY_ENGINE == "truffleruby"
|
||||||
a = []
|
a = []
|
||||||
a << HasInspect.new(a)
|
a << HasInspect.new(a)
|
||||||
assert_equal("[<inspect:[...]>]\n", PP.pp(a, ''.dup))
|
assert_equal("[<inspect:[...]>]\n", PP.pp(a, ''.dup))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user