summaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-08-02 21:02:44 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-08-02 21:05:55 +0200
commitc3efce4ff72f6284b1036df27edddbe0eae8026b (patch)
treea29a3baa04df2331568653e4470c9d816e11f229 /src/Main.hs
parent542e518ddd09ad9e4b44f17185d97b9f5ee943f1 (diff)
Module name declaration
Changelog: Accept module name declaration
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 594de0c..61afbd8 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -149,10 +149,10 @@ main = do
out <- startOutput (optVerbose opts) useColor
tests <- forM files $ \(path, mbTestName) -> do
- fileTests <- parseTestFile path
+ Module { .. } <- parseTestFile path
return $ case mbTestName of
- Nothing -> fileTests
- Just name -> filter ((==name) . testName) fileTests
+ Nothing -> moduleTests
+ Just name -> filter ((==name) . testName) moduleTests
ok <- allM (runTest out $ optTest opts) $
concat $ replicate (optRepeat opts) $ concat tests