mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 11:03:58 +02:00
parent
03507498b6
commit
c539cfd235
1 changed files with 2 additions and 2 deletions
|
@ -948,8 +948,8 @@ class TestBigDecimal < Test::Unit::TestCase
|
|||
|
||||
BigDecimal.mode(BigDecimal::EXCEPTION_INFINITY, true)
|
||||
BigDecimal.mode(BigDecimal::EXCEPTION_ZERODIVIDE, false)
|
||||
assert_raise_with_message(FloatDomainError, "Computation results to 'Infinity'") { BigDecimal("1") / 0 }
|
||||
assert_raise_with_message(FloatDomainError, "Computation results to '-Infinity'") { BigDecimal("-1") / 0 }
|
||||
assert_raise_with_message(FloatDomainError, "Computation results in 'Infinity'") { BigDecimal("1") / 0 }
|
||||
assert_raise_with_message(FloatDomainError, "Computation results in '-Infinity'") { BigDecimal("-1") / 0 }
|
||||
end
|
||||
|
||||
def test_div_with_float
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue