Skip to content

Commit 07c1de3

Browse files
committed
Updated tests for TruffleRuby [skip ci]
1 parent 989d602 commit 07c1de3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ gem "rake"
66
gem "minitest", ">= 5"
77
gem "daru"
88
gem "matrix" # for daru
9-
gem "numo-narray", platform: [:ruby, :x64_mingw]
10-
gem "rover-df", platform: [:ruby, :x64_mingw]
9+
gem "numo-narray", platform: [:mri, :x64_mingw]
10+
gem "rover-df", platform: [:mri, :x64_mingw]
1111
gem "csv"

test/dmatrix_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ def test_daru
6262
end
6363

6464
def test_numo
65-
skip if RUBY_PLATFORM == "java"
65+
skip if ["jruby", "truffleruby"].include?(RUBY_ENGINE)
6666

6767
data = Numo::DFloat.new(3, 5).seq
6868
label = Numo::DFloat.new(3).seq
6969
XGBoost::DMatrix.new(data, label: label)
7070
end
7171

7272
def test_rover
73-
skip if RUBY_PLATFORM == "java"
73+
skip if ["jruby", "truffleruby"].include?(RUBY_ENGINE)
7474

7575
data = Rover.read_csv(data_path)
7676
label = data.delete("y")

0 commit comments

Comments
 (0)