test test

This commit is contained in:
Lei Zhu 2023-07-23 15:19:13 +08:00
parent aafb77df7c
commit fb2e3f2740
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,9 @@ otherCommandTests = testGroup "other command"
, testCase "nuke" $ do
res <- parseWith ["nuke"]
liftIO $ assertBool "nuke parse failed" (isNuke res)
, testCase "test ghc" $ do
res <- parseWith ["test", "ghc"]
liftIO $ assertBool "test parse failed" (isTest res)
]
isDInfo :: Command -> Bool
@ -29,3 +32,7 @@ isDInfo _ = False
isNuke :: Command -> Bool
isNuke Nuke = True
isNuke _ = False
isTest :: Command -> Bool
isTest (Test _) = True
isTest _ = False