test/test_integer_range.rb in oj-3.14.2 vs test/test_integer_range.rb in oj-3.14.3
- old
+ new
@@ -47,11 +47,11 @@
assert_equal(exp, Oj.dump(test, mode: mode, integer_range: (-1..1)), "Invalid mode #{mode}")
end
end
def test_modes_without_opt
- test = {safe:0, unsafe: 10000000000000000000}
+ test = {safe: 0, unsafe: 10000000000000000000}
exp = '{"safe":0,"unsafe":10000000000000000000}'
[:strict, :null, :compat, :rails, :custom].each do |mode|
assert_equal(exp, Oj.dump(test, mode: mode), "Invalid mode #{mode}")
end
@@ -61,10 +61,10 @@
assert_equal(exp, Oj.dump(test, mode: mode), "Invalid mode #{mode}")
end
end
def test_accept_nil_and_false
- test = {safe:0, unsafe: 10000000000000000000}
+ test = {safe: 0, unsafe: 10000000000000000000}
exp = '{"safe":0,"unsafe":10000000000000000000}'
assert_equal(exp, Oj.dump(test, integer_range: nil))
assert_equal(exp, Oj.dump(test, integer_range: false))
end