-
Notifications
You must be signed in to change notification settings - Fork 106
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 serde_as regression test for pasta #2476
Add serde_as regression test for pasta #2476
Conversation
8d9fcd2
to
7cd2acf
Compare
utils/src/serialization.rs
Outdated
|
||
let mut buf_written: Vec<u8> = vec![0; buf_expected.len()]; | ||
|
||
let srs_bytes = rmp_serde::to_vec(&data_expected).unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit pick: don't use unwrap() but expects. Generally it's easier to find what is wrong if you have more than one unwrap() in the test
@@ -122,7 +122,6 @@ where | |||
} | |||
|
|||
/// creates the indexes | |||
#[must_use] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Offtop but: I removed this since it was giving a warning: setup_with_custom_srs
is indeed used, but only in tests. must_use
does not understand this and produces a warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This did not work.
Adding a test to make sure that serialization of pasta points is as we expect.
(important for making sure update to arkworks 0.4.2 is not breaking backward-compatibility)