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

[EXP] use proptest for generating values for tests #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

luizirber
Copy link
Collaborator

Still not sure if this is a good idea, but wanted to try it out =]

proptest is a crate for property-based testing. In this example, I'm using it to generate values for the specvol function, and then comparing the output of the C and Rust versions by going thru the C API (a test oracle)

This might not be a good idea because:

  • each test case generated needs to be compiled (large overhead)
  • I'm passing the values as strings and parsing in C using strtof

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