summaryrefslogtreecommitdiff
path: root/test/runTests.hs
diff options
context:
space:
mode:
authorPéter Diviánszky <divipp@gmail.com>2016-01-25 14:41:00 +0100
committerPéter Diviánszky <divipp@gmail.com>2016-01-25 14:41:05 +0100
commitb7483fb783243658ad50b7442be23227d14c5368 (patch)
treeaa053e61b09527975681c52394ef125dbf22cbf2 /test/runTests.hs
parenta10900b1e1ba329d81ec8fff1e51f1d64156b981 (diff)
small refactoring
Diffstat (limited to 'test/runTests.hs')
-rw-r--r--test/runTests.hs9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/runTests.hs b/test/runTests.hs
index a8bc4a8b..4e27cf79 100644
--- a/test/runTests.hs
+++ b/test/runTests.hs
@@ -83,13 +83,6 @@ instance NFData TestCaseTag where
83 83
84type TestCasePath = TestCase FilePath 84type TestCasePath = TestCase FilePath
85 85
86isNormalTC :: TestCase a -> Bool
87isNormalTC = (== Normal) . fst . fst
88
89-- Is TestCase is work in progress?
90isWipTC :: TestCase a -> Bool
91isWipTC = (== WorkInProgress) . fst . fst
92
93takeExtensions' :: FilePath -> [String] 86takeExtensions' :: FilePath -> [String]
94takeExtensions' fn = case splitExtension fn of 87takeExtensions' fn = case splitExtension fn of
95 (_, "") -> [] 88 (_, "") -> []
@@ -139,7 +132,7 @@ main = do
139 , ["Overall time: " ++ showTime (sum $ map (fst . snd) resultDiffs)] 132 , ["Overall time: " ++ showTime (sum $ map (fst . snd) resultDiffs)]
140 ] 133 ]
141 134
142 when (any erroneous (map (fst . snd . testCaseVal) $ filter isNormalTC resultDiffs)) 135 when (any erroneous (map (fst . snd . testCaseVal) $ filter ((== Normal) . fst . fst) resultDiffs))
143 exitFailure 136 exitFailure
144 putStrLn "All OK" 137 putStrLn "All OK"
145 unless (null resultDiffs) $ putStrLn "Only work in progress test cases are failing." 138 unless (null resultDiffs) $ putStrLn "Only work in progress test cases are failing."