nuke test
This commit is contained in:
parent
38db038953
commit
16c7ecabe2
@ -17,8 +17,15 @@ otherCommandTests = testGroup "other command"
|
|||||||
, testCase "tool-requirements -r" $ do
|
, testCase "tool-requirements -r" $ do
|
||||||
ToolRequirements opt <- parseWith ["tool-requirements", "--raw-format"]
|
ToolRequirements opt <- parseWith ["tool-requirements", "--raw-format"]
|
||||||
liftIO $ tlrRaw opt @?= True
|
liftIO $ tlrRaw opt @?= True
|
||||||
|
, testCase "nuke" $ do
|
||||||
|
res <- parseWith ["nuke"]
|
||||||
|
liftIO $ assertBool "nuke parse failed" (isNuke res)
|
||||||
]
|
]
|
||||||
|
|
||||||
isDInfo :: Command -> Bool
|
isDInfo :: Command -> Bool
|
||||||
isDInfo DInfo = True
|
isDInfo DInfo = True
|
||||||
isDInfo _ = False
|
isDInfo _ = False
|
||||||
|
|
||||||
|
isNuke :: Command -> Bool
|
||||||
|
isNuke Nuke = True
|
||||||
|
isNuke _ = False
|
||||||
|
Loading…
Reference in New Issue
Block a user