Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
name: build (${{ matrix.ruby }} / ${{ matrix.os }})
needs: ruby-versions
strategy:
fail-fast: false
matrix:
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
os: [ ubuntu-latest, macos-latest, windows-latest ]
Expand All @@ -29,6 +30,8 @@ jobs:
os: windows-latest
- ruby: mswin
os: windows-2022
- ruby: truffleruby
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
Expand Down
8 changes: 1 addition & 7 deletions test/date/test_date_parse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -591,13 +591,7 @@ def test__parse_odd_offset
end

def test__parse_too_long_year
# Math.log10 does not support so big numbers like 10^100_000 on TruffleRuby
unless RUBY_ENGINE == 'truffleruby'
str = "Jan 1" + "0" * 100_000
h = EnvUtil.timeout(3) {Date._parse(str, limit: 100_010)}
assert_equal(100_000, Math.log10(h[:year]))
assert_equal(1, h[:mon])
end
omit 'transient' if RUBY_ENGINE == 'truffleruby'

str = "Jan - 1" + "0" * 100_000
h = EnvUtil.timeout(3) {Date._parse(str, limit: 100_010)}
Expand Down