Uh oh!
There was an error while loading. Please reload this page.
Test/improve decoder coverage - #48
Conversation
Add 58 new edge case tests for the decoder module, improving coverage.
alesanfra
left a comment
There was a problem hiding this comment.
LGTM! Thanks for this contribution!
DiogoRibeiro7
commented
Mar 15, 2026
this will be merged? because i can't request reviews, the codeowners/maintaners should add automation for it. Thanks in advance |
alesanfra
commented
Mar 15, 2026
At the moment we need 2 approvals to merge a PR, I'll ask @johannschopplich to add another approval. |
johannschopplich
commented
Mar 17, 2026
Hey @DiogoRibeiro7 – thanks for the effort here, the CLI fix for The one-line fix in For the decoder tests: we actually have an official conformance test suite in Would you be open to rewriting the decoder tests to load and run the fixtures from the spec repo instead? Happy to point you to how this could work in practice. |
DiogoRibeiro7
commented
Mar 17, 2026
@johannschopplich i will do that, thanks for the support and feedback |
Addressed review feedback:
|
Linked Issue
Closes #N/A
Description
Made the CLI respect the
--indentflag when decoding TOON so the emitted JSON formatting matches the user’s request, and added a regression test to lock in that behavior.Type of Change
Changes Made
json.dumpsindecode_toon_to_json.--indent 4and asserts the output uses four-space indentation.SPEC Compliance
Testing
uv run pytest tests/test_cli.py -k decode_indentPre-submission Checklist
Breaking Changes
Additional Context
Ensures the CLI indent option behaves consistently during both encoding and decoding so users can control JSON formatting on both sides of the conversion.