Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more tests #392

Merged
merged 1 commit into from
May 1, 2022
Merged

Add more tests #392

merged 1 commit into from
May 1, 2022

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented May 1, 2022

This PR augments the rw test helpers to also allow assertion of the upack.Msg version of the serialized values, and then goes through and adds them to all the existing tests.

Previously we were only asserting that values could be round-tripped, without checking what they serialized into.

Now, the message-pack format tests are brought up to par with the JSON format: we ensure that the message-pack output is something reasonable, explicitly specify the output that each value t is supposed to serialize to, as well as listing out what other inputs we expect to be able to read into t apart from the one that it is written out to (e.g. old formats for backwards-compatibility)

@lihaoyi lihaoyi merged commit 63bb570 into master May 1, 2022
@lefou lefou deleted the add-tests branch September 20, 2022 20:33
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