Skip to content

Rewrite BigDecimal#sqrt in ruby using Integer.sqrt #451

Rewrite BigDecimal#sqrt in ruby using Integer.sqrt

Rewrite BigDecimal#sqrt in ruby using Integer.sqrt #451

Triggered via pull request May 17, 2025 12:46
Status Failure
Total duration 3m 15s
Artifacts

ci.yml

on: pull_request
ruby-versions  /  Generate Ruby versions
2s
ruby-versions / Generate Ruby versions
Matrix: host
Fit to window
Zoom out
Zoom in

Annotations

36 errors
Failure: test/bigdecimal/test_bigdecimal.rb#L1189
<"0.14142135623730950488016887242096980785696718753769480731">("UTF-8") expected but was <"0.14142135623730950533076675614619546927108765441564332116">("US-ASCII").
Failure: test/bigdecimal/test_bigdecimal.rb#L1170
<true> expected but was <false>.
Failure: test/bigdecimal/test_bigdecimal.rb#L1203
<1267650600228229401496703205376> expected but was <0.12676506002282294570779124589795791386163905907918240539928030239740540642918e31>.
Error: test/bigdecimal/test_bigmath.rb#L80
FloatDomainError: Infinity <internal:core> core/float.rb:172:in `floor' <internal:core> core/integer.rb:353:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal.rb:26:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:43:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:153:in `atan' /Users/runner/work/bigdecimal/bigdecimal/test/bigdecimal/test_bigmath.rb:80:in `test_atan' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Failure: test/bigdecimal/test_bigmath.rb#L23
<10> expected but was <0.100000000000000004242063737401796198e2>.
macos-latest truffleruby
Process completed with exit code 1.
Failure: test/bigdecimal/test_bigdecimal.rb#L1189
<"0.14142135623730950488016887242096980785696718753769480731">("UTF-8") expected but was <"0.14142135623730950533076675614619546927108765441564332116">("US-ASCII").
Failure: test/bigdecimal/test_bigdecimal.rb#L1170
<true> expected but was <false>.
Failure: test/bigdecimal/test_bigdecimal.rb#L1203
<1267650600228229401496703205376> expected but was <0.12676506002282294570779124589795791386163905907918240539928030239740540642918e31>.
Error: test/bigdecimal/test_bigmath.rb#L80
FloatDomainError: Infinity <internal:core> core/float.rb:172:in `floor' <internal:core> core/integer.rb:353:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal.rb:26:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:43:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:153:in `atan' /Users/runner/work/bigdecimal/bigdecimal/test/bigdecimal/test_bigmath.rb:80:in `test_atan' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Failure: test/bigdecimal/test_bigmath.rb#L23
<10> expected but was <0.100000000000000004242063737401796198e2>.
macos-latest truffleruby-head
Process completed with exit code 1.
Failure: test/bigdecimal/test_bigdecimal.rb#L1189
<"0.14142135623730950488016887242096980785696718753769480731">("UTF-8") expected but was <"0.14142135623730950533076675614619546927108765441564332116">("US-ASCII").
Failure: test/bigdecimal/test_bigdecimal.rb#L1170
<true> expected but was <false>.
Failure: test/bigdecimal/test_bigdecimal.rb#L1203
<1267650600228229401496703205376> expected but was <0.12676506002282294570779124589795791386163905907918240539928030239740540642918e31>.
Error: test/bigdecimal/test_bigmath.rb#L80
FloatDomainError: Infinity <internal:core> core/float.rb:172:in `floor' <internal:core> core/integer.rb:353:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal.rb:26:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:43:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:153:in `atan' /Users/runner/work/bigdecimal/bigdecimal/test/bigdecimal/test_bigmath.rb:80:in `test_atan' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Failure: test/bigdecimal/test_bigmath.rb#L23
<10> expected but was <0.100000000000000004242063737401796198e2>.
macos-14 truffleruby-head
Process completed with exit code 1.
Failure: test/bigdecimal/test_bigdecimal.rb#L1189
<"0.14142135623730950488016887242096980785696718753769480731">("UTF-8") expected but was <"0.14142135623730950533076675614619546927108765441564332116">("US-ASCII").
Failure: test/bigdecimal/test_bigdecimal.rb#L1170
<true> expected but was <false>.
Failure: test/bigdecimal/test_bigdecimal.rb#L1203
<1267650600228229401496703205376> expected but was <0.12676506002282294570779124589795791386163905907918240539928030239740540642918e31>.
Error: test/bigdecimal/test_bigmath.rb#L80
FloatDomainError: Infinity <internal:core> core/float.rb:172:in `floor' <internal:core> core/integer.rb:353:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal.rb:26:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:43:in `sqrt' /Users/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:153:in `atan' /Users/runner/work/bigdecimal/bigdecimal/test/bigdecimal/test_bigmath.rb:80:in `test_atan' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Failure: test/bigdecimal/test_bigmath.rb#L23
<10> expected but was <0.100000000000000004242063737401796198e2>.
macos-14 truffleruby
Process completed with exit code 1.
Failure: test/bigdecimal/test_bigdecimal.rb#L1189
<"0.14142135623730950488016887242096980785696718753769480731">("UTF-8") expected but was <"0.14142135623730950533076675614619546927108765441564332116">("US-ASCII").
Failure: test/bigdecimal/test_bigdecimal.rb#L1170
<true> expected but was <false>.
Failure: test/bigdecimal/test_bigdecimal.rb#L1203
<1267650600228229401496703205376> expected but was <0.12676506002282294570779124589795791386163905907918240539928030239740540642918e31>.
Error: test/bigdecimal/test_bigmath.rb#L80
FloatDomainError: Infinity <internal:core> core/float.rb:172:in `floor' <internal:core> core/integer.rb:353:in `sqrt' /home/runner/work/bigdecimal/bigdecimal/lib/bigdecimal.rb:26:in `sqrt' /home/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:43:in `sqrt' /home/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:153:in `atan' /home/runner/work/bigdecimal/bigdecimal/test/bigdecimal/test_bigmath.rb:80:in `test_atan' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Failure: test/bigdecimal/test_bigmath.rb#L23
<10> expected but was <0.100000000000000004242063737401796198e2>.
ubuntu-latest truffleruby
Process completed with exit code 1.
Failure: test/bigdecimal/test_bigdecimal.rb#L1189
<"0.14142135623730950488016887242096980785696718753769480731">("UTF-8") expected but was <"0.14142135623730950533076675614619546927108765441564332116">("US-ASCII").
Failure: test/bigdecimal/test_bigdecimal.rb#L1170
<true> expected but was <false>.
Failure: test/bigdecimal/test_bigdecimal.rb#L1203
<1267650600228229401496703205376> expected but was <0.12676506002282294570779124589795791386163905907918240539928030239740540642918e31>.
Error: test/bigdecimal/test_bigmath.rb#L80
FloatDomainError: Infinity <internal:core> core/float.rb:172:in `floor' <internal:core> core/integer.rb:353:in `sqrt' /home/runner/work/bigdecimal/bigdecimal/lib/bigdecimal.rb:26:in `sqrt' /home/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:43:in `sqrt' /home/runner/work/bigdecimal/bigdecimal/lib/bigdecimal/math.rb:153:in `atan' /home/runner/work/bigdecimal/bigdecimal/test/bigdecimal/test_bigmath.rb:80:in `test_atan' <internal:core> core/throw_catch.rb:36:in `catch' <internal:core> core/throw_catch.rb:36:in `catch'
Failure: test/bigdecimal/test_bigmath.rb#L23
<10> expected but was <0.100000000000000004242063737401796198e2>.
ubuntu-latest truffleruby-head
Process completed with exit code 1.