summaryrefslogtreecommitdiff
path: root/test/bigdecimal/test_bigdecimal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/bigdecimal/test_bigdecimal.rb')
-rw-r--r--test/bigdecimal/test_bigdecimal.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index e8fd85a..0063fb9 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -917,6 +917,7 @@ class TestBigDecimal < Test::Unit::TestCase
def test_mult_with_float
assert_kind_of(BigDecimal, BigDecimal("3") * 1.5)
+ assert_equal(BigDecimal("64.4"), BigDecimal(1) * 64.4)
end
def test_mult_with_rational
@@ -955,6 +956,7 @@ class TestBigDecimal < Test::Unit::TestCase
def test_div_with_float
assert_kind_of(BigDecimal, BigDecimal("3") / 1.5)
+ assert_equal(BigDecimal("0.5"), BigDecimal(1) / 2.0)
end
def test_div_with_rational