Skip to content

test: regression tests for vlang/v#26644 and vlang/msgpack#12#15

Merged
medvednikov merged 1 commit into
masterfrom
add-issue-regression-tests
May 26, 2026
Merged

test: regression tests for vlang/v#26644 and vlang/msgpack#12#15
medvednikov merged 1 commit into
masterfrom
add-issue-regression-tests

Conversation

@medvednikov
Copy link
Copy Markdown
Member

Summary

Adds issues_test.v capturing the exact reproductions from each bug report that motivated the recent #13 and #14 fixes, so future regressions fail loudly with a direct link back to the original issue.

Covers:

Test plan

  • v test . — all 4 test files pass (encode, decode, decode_to_json, issues)
  • v fmt -verify issues_test.v — clean

Pins the exact reproductions from each bug report so future regressions
fail loudly with a direct link back to the original issue. Covers all
three bugs from vlang/v#26644 (minimal int encoding, signed-vs-unsigned
boundary 128-255, fixint decoding) and both forms of the
#12 struct-decode panic — the direct encode/decode
round-trip and the json.decode -> msgpack.encode -> msgpack.decode
pipeline the reporter used. The struct test also feeds in the pre-fix
wire bytes from the bug report to ensure the decode bug isn't being
masked by the new encoder picking a more compact format.
@medvednikov medvednikov merged commit dd4f46d into master May 26, 2026
2 checks 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.

1 participant