Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/matklad/arbtest
- Owner: matklad
- License: apache-2.0
- Created: 2022-04-10T21:08:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-22T09:40:47.000Z (9 months ago)
- Last Synced: 2024-04-02T01:33:13.177Z (8 months ago)
- Language: Rust
- Size: 29.3 KB
- Stars: 80
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
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(())
});
}
```