minor: test fix for Rational class
This commit is contained in:
parent
002b036c39
commit
33c848f67a
@ -318,7 +318,7 @@ class BSONTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_invalid_numeric_types
|
def test_invalid_numeric_types
|
||||||
[BigDecimal.new("1.0"), Complex(0, 1), Rational.new!(2, 3)].each do |type|
|
[BigDecimal.new("1.0"), Complex(0, 1), Rational(2, 3)].each do |type|
|
||||||
print type.class
|
print type.class
|
||||||
doc = {"x" => type}
|
doc = {"x" => type}
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user