Created
September 3, 2012 10:20
-
-
Save z0w0/3608372 to your computer and use it in GitHub Desktop.
Quickcheck in Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// each argument is randomized (error if the argument is not a primitive type or string) | |
#[quickcheck(tries = 1000)] | |
fn even(number: int) { | |
return number % 2 == 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment