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 serde_as regression test for pasta #2476

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

volhovm
Copy link
Member

@volhovm volhovm commented Aug 21, 2024

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)

@volhovm volhovm requested a review from georgeee August 21, 2024 15:56
@volhovm volhovm force-pushed the volhovm/add-regression-for-pasta-serialization branch from 8d9fcd2 to 7cd2acf Compare August 22, 2024 09:55
@volhovm volhovm changed the base branch from compatible to develop August 22, 2024 10:06

let mut buf_written: Vec<u8> = vec![0; buf_expected.len()];

let srs_bytes = rmp_serde::to_vec(&data_expected).unwrap();

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]
Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This did not work.

@volhovm volhovm merged commit f3acf46 into develop Aug 22, 2024
5 checks passed
@volhovm volhovm deleted the volhovm/add-regression-for-pasta-serialization branch August 22, 2024 11:07
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.

2 participants