test

Perform the "./setup test" action.
Lift a test in to a property. Because both TestT and PropertyT have MonadTest instances, this function is not often required. It can however be useful for writing functions directly in TestT and thus gaining a MonadTransControl instance at the expense of not being able to generate additional inputs using forAll. An example where this is useful is parallel state machine testing, as executeParallel requires MonadBaseControl IO in order to be able to spawn threads in MonadTest.
Solve the equation:
2x + y - z = 2
We have:
>>> test
(k, 2+k', 2k+k')
(1+k, k', 2k+k')
That is, for arbitrary k and k', we have two different solutions. (An infinite family.) You can verify these solutuions by substituting the values for x, y and z in the above, for each choice. It's harder to see that they cover all possibilities, but a moments thought reveals that is indeed the case.
Proves the equivalence NOT (p OR (q AND r)) == (NOT p AND NOT q) OR (NOT p AND NOT r), following from the axioms we have specified above. We have:
>>> test
Q.E.D.
Define a test, with the given name and implementation.
Returns false if the pattern and the text do not match at all. Returns true otherwise.
>>> test "brd" "bread"
True
Create a Tasty test from a Hedgehog property called only once
Test with default options (defOptions). Returns a list of counterexamples
Check whether a communication has completed, and free the communication request if so (MPI_Test).
Check whether a communication has finished, and return the communication result if so.
A handy test
Apply one or the other validator depending on the result of a test.

Example

>>> let exV = test pass (fail "I'm a failure") (pure . (>3))
>>> validateP exV 3
Left (Valid 3)
>>> validateP exV 4
Right "I'm a failure"
Test if a variable is true (specialised to Bool)
The basic structure used to create an annotated tree of test cases.
Main test data type: builds up a list of tests to be run. Users should use the utility functions in e.g. the test-framework-hunit and test-framework-quickcheck2 packages to create instances of Test, and then build them up into testsuites by using testGroup and lists. For an example of how to use test-framework, please see http://github.com/batterseapower/test-framework/raw/master/example/Test/Framework/Example.lhs