fix indentation in Golden so that prompt happens after both paths under expected and actual outputs don't match.

This commit is contained in:
Mathew Polzin 2021-02-21 19:14:09 -08:00 committed by G. Allais
parent 7ccc47712e
commit c3a42966e7
2 changed files with 8 additions and 8 deletions

View File

@ -202,10 +202,10 @@ runTest opts testPath = forkIO $ do
["Golden value differs from actual value."] ++
(if (code < 0) then expVsOut exp out else []) ++
["Accept actual value as new golden value? [yn]"]
b <- getAnswer
when b $ do Right _ <- writeFile (testPath ++ "/expected") out
| Left err => print err
pure ()
b <- getAnswer
when b $ do Right _ <- writeFile (testPath ++ "/expected") out
| Left err => print err
pure ()
printTiming : Bool -> Clock type -> String -> IO ()
printTiming True clock msg = putStrLn (unwords [msg, show clock])

View File

@ -202,10 +202,10 @@ runTest opts testPath = forkIO $ do
["Golden value differs from actual value."] ++
(if (code < 0) then expVsOut exp out else []) ++
["Accept actual value as new golden value? [yn]"]
b <- getAnswer
when b $ do Right _ <- writeFile (testPath ++ "/expected") out
| Left err => print err
pure ()
b <- getAnswer
when b $ do Right _ <- writeFile (testPath ++ "/expected") out
| Left err => print err
pure ()
printTiming : Bool -> Clock type -> String -> IO ()
printTiming True clock msg = putStrLn (unwords [msg, show clock])