Skip to content

Commit

Permalink
Add truffleruby in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 27, 2023
1 parent 4f23a5c commit 5a25e26
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ jobs:
- 2.6
- 2.5
- debug
- truffleruby
include:
- { os: windows-latest , ruby: mingw }
- { os: windows-latest , ruby: mswin }
exclude:
- { os: windows-latest , ruby: 3.0 }
- { os: windows-latest , ruby: debug }
- { os: windows-latest , ruby: truffleruby }

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 5 additions & 1 deletion test/bigdecimal/test_bigdecimal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,11 @@ def test_s_ver
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
Expand Down

0 comments on commit 5a25e26

Please sign in to comment.