Don't show the state when a pass unexpectedly succeeds.

This used not to be a problem, but there's now quite a lot of stuff predefined
in the state when testing the typechecker, so it tends to obscure the real
error...
This commit is contained in:
Adam Sampson 2008-03-20 23:56:13 +00:00
parent 7c4275116e
commit cfc5b18e3e

View File

@ -505,7 +505,7 @@ testPassShouldFail testName actualPass startStateTrans =
do ret <- runPass actualPass (execState startStateTrans emptyState)
case ret of
Left err -> return ()
_ -> testFailure $ testName ++ " pass succeeded when expected to fail, data: " ++ (pshow ret)
Right (state, output) -> testFailure $ testName ++ " pass succeeded when expected to fail; output: " ++ pshow output
--}}}
--{{{ miscellaneous utilities