Skip to content

test: add edge case coverage for uniqueItems with objects and booleans#239

Merged
jdesrosiers merged 1 commit into
hyperjump-io:mainfrom
Suyog241005:test/uniqueItems-edge-cases
Jun 14, 2026
Merged

test: add edge case coverage for uniqueItems with objects and booleans#239
jdesrosiers merged 1 commit into
hyperjump-io:mainfrom
Suyog241005:test/uniqueItems-edge-cases

Conversation

@Suyog241005

Copy link
Copy Markdown
Contributor

The uniqueItems error handler uses json-stringify-deterministic to compare array items, but the test suite only covered string values.

Added test cases for:

Duplicate objects ([{"a":1},{"a":1}]) -- exercises the JSON stringify path for nested values
Duplicate booleans ([true, true]) -- exercises primitive non-string comparison

Both new cases pass, confirming the handler works correctly for these types.

@jdesrosiers jdesrosiers merged commit 99dd1ca into hyperjump-io:main Jun 14, 2026
1 check passed
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.

2 participants