Skip to content

Fix numeric equality in v5 test operations - #224

Open
Boulea7 wants to merge 1 commit into
evanphx:masterfrom
Boulea7:ln-cx/v5-numeric-test-equality-20261003T090104Z
Open

Boulea7 wants to merge 1 commit into
evanphx:masterfrom
Boulea7:ln-cx/v5-numeric-test-equality-20261003T090104Z

Conversation

@Boulea7

@Boulea7 Boulea7 commented Oct 3, 2026

Copy link
Copy Markdown

JSON Patch test currently rejects numerically equal values such as 1 and 1.0. Compare JSON numbers by their exact decimal value, including nested objects and arrays, without converting them to floating point or expanding exponents. Equal shares this comparison.

Tests cover decimal/exponent forms, signed zero, precision-sensitive large integers, large exponents, and type/invalid-input boundaries. go test -mod=readonly -count=1 -cover ./... passes from v5 with Go 1.27.1; Go 1.18 was not run locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant