A Rust crate for property-based testing.
Add this to your Cargo.toml
:
toml
[dependencies]
prop-check-rs = "<<version>>"
```rust
fn testoneof() -> Result<()> { let gen = Gens::oneofvalues(['a', 'b', 'c', 'x', 'y', 'z']); let prop = forallgen(gen, move |value| { log::info!("value = {}", value); true }); testwithprop(prop, 1, 100, new_rng()) } ```
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.