summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/json_parser_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/json_parser_test.rb b/tests/json_parser_test.rb
index 469f93c..9946dd9 100644
--- a/tests/json_parser_test.rb
+++ b/tests/json_parser_test.rb
@@ -110,8 +110,8 @@ class JSONParserTest < Test::Unit::TestCase
end
def test_parse_bigdecimals
- assert_equal(BigDecimal, JSON.parse('{"foo": 9.01234567890123456789}', decimal_class: BigDecimal)["foo"].class)
- assert_equal(BigDecimal.new("0.901234567890123456789E1"),JSON.parse('{"foo": 9.01234567890123456789}', decimal_class: BigDecimal)["foo"] )
+ assert_equal(BigDecimal, JSON.parse('{"foo": 9.01234567890123456789}', decimal_class: BigDecimal)["foo"].class)
+ assert_equal(BigDecimal("0.901234567890123456789E1"),JSON.parse('{"foo": 9.01234567890123456789}', decimal_class: BigDecimal)["foo"] )
end
if Array.method_defined?(:permutation)