diff options
Diffstat (limited to 'test/bigdecimal/test_bigdecimal.rb')
-rw-r--r-- | test/bigdecimal/test_bigdecimal.rb | 6 |
1 files changed, 5 insertions, 1 deletions
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 |