Skip to content

Fix big-endian test expectations in frontend message tests - #272

Merged
SeanTAllen merged 1 commit into
mainfrom
fix-bigendian-test-expectations
Oct 17, 2026
Merged

SeanTAllen merged 1 commit into
mainfrom
fix-bigendian-test-expectations

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

The frontend message encoder writes big-endian (network byte order) regardless of host endianness, so the wire bytes are identical on both platforms. The ifdef bigendian branches in the test expectations had the multi-byte integer fields reversed — they would have failed on a big-endian host. Since both branches should be identical, the ifdef is removed entirely.

Closes #271

@SeanTAllen SeanTAllen added the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Oct 17, 2026
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Oct 17, 2026
@SeanTAllen SeanTAllen removed the changelog - fixed Automatically add "Fixed" CHANGELOG entry on merge label Oct 17, 2026
@ponylang ponylang deleted a comment from ponylang-main Oct 17, 2026
The frontend message encoder writes big-endian (network byte order)
regardless of host endianness, so the wire bytes are identical on both
platforms. The `ifdef bigendian` branches in the test expectations had
the multi-byte integer fields reversed — they would have failed on a
big-endian host. Since both branches should be identical, remove the
`ifdef` entirely.

Also removes one redundant `ifdef bigendian` in `_test_codecs.pony`
where both branches asserted the same values.

Closes #271
Closes #273
@SeanTAllen
SeanTAllen force-pushed the fix-bigendian-test-expectations branch from 107fcaf to d0f564a Compare October 17, 2026 21:26
@SeanTAllen
SeanTAllen merged commit 3c52024 into main Oct 17, 2026
6 checks passed
@SeanTAllen
SeanTAllen deleted the fix-bigendian-test-expectations branch October 17, 2026 21:46
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Oct 17, 2026
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.

Big-endian test expectations have byte order reversed in _test_frontend_message.pony

2 participants