Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit 426573f

Browse files
author
Michael Hueschen
committed
[CBR-503] Clarify test success
1 parent d1a5d97 commit 426573f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

script-runner/TestCases.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,13 @@ test4 targetblocksize expectedResult = do
171171
endScript $ ExitFailure 3
172172
on (3,10) $ \Dict _diffusion -> do
173173
bvd <- gsAdoptedBVData
174-
case (bvdMaxBlockSize bvd == targetblocksize) of
175-
True -> endScript ExitSuccess
176-
_ -> do
177-
liftIO $ hPutStrLn stderr "max block size not what was expected"
178-
endScript $ ExitFailure 4
174+
if bvdMaxBlockSize bvd == targetblocksize
175+
then do
176+
liftIO $ hPutStrLn stderr "test passed"
177+
endScript ExitSuccess
178+
else do
179+
liftIO $ hPutStrLn stderr "max block size not what was expected"
180+
endScript $ ExitFailure 4
179181
forM_ (range (0,20)) $ \epoch -> do
180182
on(epoch, 0) $ printbvd epoch 0
181183
on(epoch, 1) $ printbvd epoch 1

0 commit comments

Comments
 (0)