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:
parent
7c4275116e
commit
cfc5b18e3e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user