nuke test

This commit is contained in:
Lei Zhu 2023-07-22 17:20:42 +08:00
parent 38db038953
commit 16c7ecabe2

View File

@ -17,8 +17,15 @@ otherCommandTests = testGroup "other command"
, testCase "tool-requirements -r" $ do
ToolRequirements opt <- parseWith ["tool-requirements", "--raw-format"]
liftIO $ tlrRaw opt @?= True
, testCase "nuke" $ do
res <- parseWith ["nuke"]
liftIO $ assertBool "nuke parse failed" (isNuke res)
]
isDInfo :: Command -> Bool
isDInfo DInfo = True
isDInfo _ = False
isNuke :: Command -> Bool
isNuke Nuke = True
isNuke _ = False