Tidy up main
This commit is contained in:
parent
db41a65453
commit
ecb7391468
@ -18,10 +18,15 @@ import Puzzles.Day9 qualified as Day9
|
||||
import Text.Pretty.Simple (pPrintForceColor)
|
||||
|
||||
main :: IO ()
|
||||
main =
|
||||
(pPrintForceColor =<<) $ runTests () $ test "tests" pure $ flip map enumerate \isRealData@(bool "examples" "real" -> t) ->
|
||||
test (mkTestName t) pure $ flip
|
||||
map
|
||||
main = do
|
||||
pPrintForceColor $ getTestTree tests
|
||||
pPrintForceColor =<< runTests () tests
|
||||
|
||||
tests :: TestTree IO ()
|
||||
tests =
|
||||
test "tests" pure $
|
||||
enumerate <&> \isRealData@(bool "examples" "real" -> t) ->
|
||||
test (mkTestName t) pure $
|
||||
[ Day1.puzzle
|
||||
, Day2.puzzle
|
||||
, Day3.puzzle
|
||||
@ -32,9 +37,7 @@ main =
|
||||
, Day8.puzzle
|
||||
, Day9.puzzle
|
||||
, Day10.puzzle
|
||||
]
|
||||
\Puzzle{number = show -> pt, parser, parts, extraTests} ->
|
||||
testLazy
|
||||
] <&> \Puzzle{number = show -> pt, parser, parts, extraTests} -> testLazy
|
||||
(mkTestName pt)
|
||||
( \() -> do
|
||||
let fp = "../inputs/" <> t <> "/" <> pt
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user