cryptol-2.2.3: Cryptol: The Language of Cryptography

Copyright(c) 2013-2015 Galois, Inc.
LicenseBSD3
Maintainercryptol@galois.com
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

Cryptol.Testing.Eval

Description

Evaluate test cases and handle exceptions appropriately

Synopsis

Documentation

data TestResult Source

A test result is either a pass, a failure due to evaluating to False, or a failure due to an exception raised during evaluation

runOneTest :: Value -> [Value] -> IO TestResult Source

Apply a testable value to some arguments. Note that this function assumes that the values come from a call to testableType (i.e., things are type-correct). We run in the IO monad in order to catch any EvalErrors.