Skip to content

test(runtime): expand json module unit tests [formatting fix] - #3308

Merged
Yeachan-Heo merged 2 commits into
mainfrom
fix/json-tests-formatting
Oct 12, 2026
Merged

Yeachan-Heo merged 2 commits into
mainfrom
fix/json-tests-formatting

Conversation

@Yeachan-Heo

Copy link
Copy Markdown
Contributor

This PR fixes the formatting issues found in PR #3270 while preserving all the test coverage improvements.

The original PR #3270 added comprehensive unit tests for the JsonValue parser/renderer but had two lines that didn't conform to rustfmt standards.

This PR includes:

nankingjing and others added 2 commits October 12, 2026 22:18
The hand-rolled JsonValue parser/renderer in runtime had only two
tests covering a self-contained JSON parser, renderer, accessor set,
and error type. Add focused unit tests covering primitive rendering,
sorted object keys, escape handling (quotes, backslashes, control
chars), signed-integer and whitespace-tolerant parsing, nested
structures, render->parse round-tripping, malformed-input rejection,
i64 overflow rejection, accessor variant mismatches, and JsonError
Display.
@Yeachan-Heo
Yeachan-Heo force-pushed the fix/json-tests-formatting branch from 14bccba to 28fb5c1 Compare October 12, 2026 22:19
@Yeachan-Heo
Yeachan-Heo merged commit 990cc33 into main Oct 12, 2026
6 checks passed
@XinwangTao

Copy link
Copy Markdown

Good — keeping all the JsonValue parser/renderer test coverage from #3270 while fixing the two rustfmt violations keeps CI green without losing the added tests. Clean follow-up.

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.

3 participants