Skip to content

Commit 696ecf3

Browse files
thomiesimonmichael
authored andcommitted
fix: -i1 for files with only 1 test
1 parent d165756 commit 696ecf3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Parse.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ parseShellTestFile debug preProcessor f = do
3232
p <- parseFromFileWithPreprocessor shelltestfile preProcessor f
3333
case p of
3434
Right ts -> do
35-
let ts' | length ts > 1 = [t{testname=testname t++":"++show n} | (n,t) <- zip ([1..]::[Int]) ts]
36-
| otherwise = ts
35+
let ts' = [t{testname=testname t++":"++show n} | (n,t) <- zip ([1..]::[Int]) ts]
3736
when (debug) $ do
3837
printf "parsed %s:\n" f
3938
mapM_ (putStrLn.(' ':).ppShow) ts'

0 commit comments

Comments
 (0)