matklad/arbtest

A minimalist property-based testing library

Rust

131

19 commits

updated Apr 30, 2025

See the code

README

arbtest

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

use arbtest::arbtest;

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

matklad/arbtest

A minimalist property-based testing library

Rust

131

19 commits

updated Apr 30, 2025

See the code

README

arbtest

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

use arbtest::arbtest;

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

Project health

crates.io

Latest release

0.3.2 · Dec 18, 2024

Releases this year

0

Significant stargazers

Graydon Hoare

7,962 followers · starred Jul 2022

Burak Varlı

75 followers · starred Oct 2025

brockelmore

874 followers · starred Apr 2022

refcell

1,303 followers · starred Aug 2024