Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matklad/arbtest

A minimalist property-based testing library
https://github.com/matklad/arbtest

Last synced: 6 days ago
JSON representation

A minimalist property-based testing library

Awesome Lists containing this project

README

        

# arbtest

A powerful property-based testing library with a tiny API and a small implementation.

```rust
use arbtest::arbtest;

#[test]
fn all_numbers_are_even() {
arbtest(|u| {
let number: u32 = u.arbitrary()?;
assert!(number % 2 == 0);
Ok(())
});
}
```