From a16933476187a349d619ab29f73dbcae81c8cb24 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 7 Nov 2025 12:25:47 +0530 Subject: Show error messages (permission error + path not found + invalid command error) --- specs/Specs/FooSpec.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'specs/Specs') 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 -- cgit v1.3.1