Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/json/json_common_interface_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ def test_unsafe_load_default_options
nan_json = '{ "foo": NaN }'
assert JSON.unsafe_load(nan_json, nil)['foo'].nan?
assert_equal nil, JSON.unsafe_load(nil, nil)
t = Time.now
assert_equal t, JSON.unsafe_load(JSON(t))
t = Time.new(2025, 9, 3, 14, 50, 0)
assert_equal t.to_s, JSON.unsafe_load(JSON(t)).to_s
end

def test_unsafe_load_with_options
Expand Down
Loading