GSW-rs icon indicating copy to clipboard operation
GSW-rs copied to clipboard

[EXP] use proptest for generating values for tests

Open luizirber opened this issue 3 years ago • 0 comments

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

luizirber avatar Apr 16 '21 16:04 luizirber