[project @ 1999-10-25 05:19:22 by andy]
authorandy <unknown>
Mon, 25 Oct 1999 05:19:22 +0000 (05:19 +0000)
committerandy <unknown>
Mon, 25 Oct 1999 05:19:22 +0000 (05:19 +0000)
commit148227dc4e67d89a2036251ef3ad72fed1e44c0f
treece6aeab7e2d81ebb76daa0cc1528d2d78b38fef3
parentdee29ec187607a1ae30959b9b45b9ddcd23356ea
[project @ 1999-10-25 05:19:22 by andy]
Adding a axiomatic testing framework library to help test Hugs and GHC
libraries.

Here is the example for the test of concat.

test_concat = testRules "concat" [
do (xss :: [[ALPHA]]) <- var "xss"
   concat xss <==> foldr (++) [] xss
]

xss here ranges over various rendering of list of list,
including bottom and lists containing bottom.

<==> uses a small piece of compiler/interpreter specifics to
allow testing for

error "" ... <==> ... error "" ===> Pass
ghc/lib/exts/AxiomTesting.lhs [new file with mode: 0644]