Registry / testing / quickcheck-macros

quickcheck-macros

JSON →
library1.2.0rscratesunverified

A macro attribute for quickcheck property-based testing.

# Cargo.toml [dependencies] quickcheck_macros = "1.2.0"
INSTALL
IMPORT
SIG · QUICKCHECK-MACROS
Q
quickcheck-macros
testingrustv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

quickcheck
use quickcheck_macros::quickcheck;

Tests that reversing a vector twice yields the original.

use quickcheck_macros::quickcheck; #[quickcheck] fn reverse_twice_is_identity(xs: Vec<i32>) -> bool { let rev: Vec<i32> = xs.iter().cloned().rev().collect(); let rev_rev: Vec<i32> = rev.iter().cloned().rev().collect(); xs == rev_rev }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
quickcheck-macros — cargo add quickcheck-macros · libregistry