From 4e0c2f05efc9415b52b50ee65401c5b511d269e7 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 30 Nov 2023 17:19:30 +0100 Subject: [PATCH] [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 --- test/test_pp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_pp.rb b/test/test_pp.rb index 72a4f127f3..6da2b808b9 100644 --- a/test/test_pp.rb +++ b/test/test_pp.rb @@ -140,7 +140,7 @@ class PPCycleTest < Test::Unit::TestCase a = S.new(1,2) a.b = a assert_equal("#>\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("[]\n", PP.pp(a, ''.dup))