-
Notifications
You must be signed in to change notification settings - Fork 224
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
Serialization testing - symmetric assertions to the unit tests #261
Comments
Note from Rust developers: serde-rs/serde#1690 (comment)
|
I think for some types not having the possibility to read what we wrote can cause problems (less problematic are edge cases like |
I'm highlighting this as the core summary of the issues. |
The opened PR fixes this in the serialization unit tests that originally spawned the issue. I'm sure there are a lot of other places to make fixes but that should require a different issue (more like a porject) with an overarching goal. This is more in line with fixing the comments that fell out of previous PRs. Also, I'm trying to close open PRs and #98 from @yihuang seemed a good fit for this issue too. Hence his changes were reimplemented here (too many changes on master for a simple cherry-picking, unfortunately). @yihuang , thanks for your patience regarding your change and feel free to chime in on this one, if you feel like it. |
Additional note: proptest, mentioned by Tony seems more in line with a "project-like" issue where we overhaul how we're doing tests. It seemed overkill for this small fix, but I'm happy to open a follow-up issue that goes through our testing and implements better ways for testing. |
Current unit tests for the serialization library separates serialization and deserialization of the same struct into separate tests. These could go into one test.
Relevant discussions:
yihuang: symmetric testing
liamsi: function from Romain
tarcieri: proptest
Another take from Ismail
The text was updated successfully, but these errors were encountered: