diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-11-07 12:25:47 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-11-08 17:09:25 +0530 |
| commit | a16933476187a349d619ab29f73dbcae81c8cb24 (patch) | |
| tree | eab12977c61a2c3b9ac88b22637f5511c21f9d18 /specs | |
| parent | 6c3f7442b92f2fbf2308d93ece448cf3dd759a58 (diff) | |
| download | daffm-a16933476187a349d619ab29f73dbcae81c8cb24.tar.gz daffm-a16933476187a349d619ab29f73dbcae81c8cb24.zip | |
Show error messages (permission error + path not found + invalid command error)
Diffstat (limited to 'specs')
| -rw-r--r-- | specs/Specs/FooSpec.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/specs/Specs/FooSpec.hs b/specs/Specs/FooSpec.hs index 24545f9..d79ce9e 100644 --- a/specs/Specs/FooSpec.hs +++ b/specs/Specs/FooSpec.hs @@ -52,7 +52,8 @@ test = do describe "parseCommand" $ do context "when given an invalid command" $ do it "returns Nothing" $ do - parseCommand "aklsdjijm" `shouldBe` Nothing + parseCommand "foobar arg1 arg2" `shouldBe` Just (CmdCustom "foobar" "arg1 arg2") + context "when empty command" $ do it "returns Nothing" $ do parseCommand "" `shouldBe` Nothing |
