Skip to content

Commit f97a75b

Browse files
committed
Fix comments
1 parent 44a9a60 commit f97a75b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Print.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ where
44
import Import
55
import Types
66

7-
-- TODO Print output depending on --print=FORMAT (currently only v3)
87
-- | Print a shell test considering the @--actual=mode@ option. See CLI
98
-- documentation for details on.
109
printShellTest
@@ -51,7 +50,7 @@ printShellTest format actualMode ShellTest{command=c,stdin=i,comments=comments,t
5150
return (o_expected, e_expected, x_expected)
5251
computeResults (Just mode)
5352
| mode `isPrefixOf` "all" = return
54-
(Just $ Lines 0 $ fromEither o_actual -- TODO what about 0? how is it in parser?
53+
(Just $ Lines 0 $ fromEither o_actual
5554
,Just $ Lines 0 $ fromEither e_actual
5655
,Numeric $ show $ fromEither x_actual)
5756
| mode `isPrefixOf` "update" = return
@@ -77,7 +76,7 @@ printStdouterr _ Nothing = return ()
7776
printStdouterr _ (Just (Lines _ "")) = return ()
7877
printStdouterr _ (Just (Numeric _)) = fail "FATAL: Cannot handle Matcher (Numeric) for stdout/stderr."
7978
printStdouterr _ (Just (NegativeNumeric _)) = fail "FATAL: Cannot handle Matcher (NegativeNumeric) for stdout/stderr."
80-
printStdouterr prefix (Just (Lines _ s)) = printf "%s\n%s\n" prefix s -- TODO trailing \n ?
79+
printStdouterr prefix (Just (Lines _ s)) = printf "%s\n%s" prefix s
8180
printStdouterr prefix (Just regex) = printf "%s %s\n" prefix (show regex)
8281

8382
-- | Print exit status. First arg says 'alwaysPrintEvenIfZero'.

0 commit comments

Comments
 (0)