 |
Synthia
Generic and flexible data structure generator
|
Go to the documentation of this file.
19 package examples.quickcheck;
33 public static void main(String[] args)
36 protected boolean evaluate(Integer x) {
42 System.out.println(
"Assertion is false");
43 System.out.println(a.
getInitial() +
" is prime");
44 System.out.println(a.
getIterations().size() +
" shrinking steps");
45 System.out.println(a.
getShrunk() +
" is also prime");
60 for (
int x = 2; x < n / x; x++)
static boolean isPrime(int n)
Checks if an integer is prime.
Pickers that produce pseudo-random objects such as numbers.
List< T > getIterations()
Picks an integer uniformly in an interval.
static void main(String[] args)
Classes that enable Synthia to operate as a fuzz testing tool.
Simple illustration of the shrinking process on randomly generated integers.
Picks a floating point number uniformly in an interval.