| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusCore.Generators.Hedgehog.Test
Description
This module defines functions useful for testing.
Synopsis
- data TypeEvalCheckError uni fun
- = TypeEvalCheckErrorIllFormed !(Name uni fun ())) #
Type check and evaluate a term and check that the expected result is equal to the actual one. Throw an error in case something goes wrong.
- = TypeEvalCheckErrorIllFormed !(Name uni fun ())) #
getSampleTermValue :: (uni Name uni fun ())) #
Generate a program using a given generator and check that it's well-typed and evaluates correctly.
printSampleProgramAndValue :: (uni Name uni fun ()) a) => TermGen a -> IO () #
Generate a program using a given generator, check that it's well-typed and evaluates correctly and pretty-print it to stdout using the default pretty-printing mode.
A property-based testing procedure for evaluators. Checks whether a term generated along with the value it's supposed to compute to indeed computes to that value according to the provided evaluate.