We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1cdac1 commit a2726cbCopy full SHA for a2726cb
test/json/json_ryu_fallback_test.rb
@@ -134,11 +134,12 @@ def test_subnormal_edge_cases_round_trip
134
# Parse the number
135
result = JSON.parse(input)
136
137
- # Re-parse to verify round-trip
138
- result2 = JSON.parse(result.to_s)
+ # Should be bit-identical
+ assert_equal(result, JSON.parse(result.to_s),
139
+ "Subnormal #{input} failed round-trip test")
140
141
# Should be bit-identical
- assert_equal(result, result2,
142
+ assert_equal(result, JSON.parse(JSON.dump(result)),
143
"Subnormal #{input} failed round-trip test")
144
145
# Verify the value is in the expected subnormal range
0 commit comments