From 47b66a5acd1511089ac9585371d93e1b5ea07232 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 25 Jan 2023 14:01:10 +0100 Subject: [ruby/bigdecimal] Add truffleruby in CI https://github.com/ruby/bigdecimal/commit/5a25e26e08 --- test/bigdecimal/test_bigdecimal.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index 0228240506..9c3d72ecaf 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -294,7 +294,11 @@ class TestBigDecimal < Test::Unit::TestCase end def test_s_allocate - assert_raise_with_message(TypeError, /allocator undefined for BigDecimal/) { BigDecimal.allocate } + if RUBY_ENGINE == "truffleruby" + assert_raise_with_message(NoMethodError, /undefined.+allocate.+for BigDecimal/) { BigDecimal.allocate } + else + assert_raise_with_message(TypeError, /allocator undefined for BigDecimal/) { BigDecimal.allocate } + end end def test_s_new -- cgit v1.2.3