summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2023-01-25 14:01:10 +0100
committergit <svn-admin@ruby-lang.org>2023-01-27 11:07:06 +0000
commit47b66a5acd1511089ac9585371d93e1b5ea07232 (patch)
tree8de6e31dc5fc4a8d36446f565d0fc2277f89ca83
parent71256caf7fddfd2e109d433e68c6fbd77a16631c (diff)
[ruby/bigdecimal] Add truffleruby in CI
https://github.com/ruby/bigdecimal/commit/5a25e26e08
-rw-r--r--test/bigdecimal/test_bigdecimal.rb6
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