mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-10 13:44:21 +03:00
fix indentation in Golden so that prompt happens after both paths under expected and actual outputs don't match.
This commit is contained in:
parent
7ccc47712e
commit
c3a42966e7
@ -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])
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user