PonyCheck¶
Constructors¶
create¶
Returns¶
- PonyCheck val^
Public Functions¶
for_all[T: T]¶
Convenience method for running 1 to many properties as part of one PonyTest UnitTest.
Example:
class MyTestWithSomeProperties is UnitTest
fun name(): String => "mytest/withMultipleProperties"
fun apply(h: TestHelper) =>
PonyCheck.for_all[U8](recover Generators.unit[U8](0) end, h)(
{(u, h) =>
h.assert_eq(u, 0)
consume u
})
Parameters¶
- gen: Generator[T] val
- h: TestHelper val
Returns¶
- ForAll[T] ref
for_all2[T1: T1, T2: T2]¶
fun box for_all2[T1: T1, T2: T2](
gen1: Generator[T1] val,
gen2: Generator[T2] val,
h: TestHelper val)
: ForAll2[T1, T2] ref
Parameters¶
- gen1: Generator[T1] val
- gen2: Generator[T2] val
- h: TestHelper val
Returns¶
- ForAll2[T1, T2] ref
for_all3[T1: T1, T2: T2, T3: T3]¶
fun box for_all3[T1: T1, T2: T2, T3: T3](
gen1: Generator[T1] val,
gen2: Generator[T2] val,
gen3: Generator[T3] val,
h: TestHelper val)
: ForAll3[T1, T2, T3] ref
Parameters¶
- gen1: Generator[T1] val
- gen2: Generator[T2] val
- gen3: Generator[T3] val
- h: TestHelper val
Returns¶
- ForAll3[T1, T2, T3] ref
for_all4[T1: T1, T2: T2, T3: T3, T4: T4]¶
fun box for_all4[T1: T1, T2: T2, T3: T3, T4: T4](
gen1: Generator[T1] val,
gen2: Generator[T2] val,
gen3: Generator[T3] val,
gen4: Generator[T4] val,
h: TestHelper val)
: ForAll4[T1, T2, T3, T4] ref
Parameters¶
- gen1: Generator[T1] val
- gen2: Generator[T2] val
- gen3: Generator[T3] val
- gen4: Generator[T4] val
- h: TestHelper val
Returns¶
- ForAll4[T1, T2, T3, T4] ref
eq¶
Parameters¶
- that: PonyCheck val
Returns¶
- Bool val
ne¶
Parameters¶
- that: PonyCheck val
Returns¶
- Bool val