diff options
Diffstat (limited to '')
| -rw-r--r-- | specs/Specs/KeySequenceSpec.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/specs/Specs/KeySequenceSpec.hs b/specs/Specs/KeySequenceSpec.hs index 7a92105..3811fbe 100644 --- a/specs/Specs/KeySequenceSpec.hs +++ b/specs/Specs/KeySequenceSpec.hs @@ -26,12 +26,12 @@ test = do describe "#generateGrid" $ do it "generates grid of key sequences" $ do generateGrid 0 (4, 4) "ABCDEF" - `shouldBe` Just [["AE", "BD", "CC", "BB"], ["AC", "FD", "EE", "EC"], ["FB", "EA", "DF", "DD"], ["CA", "DB", "CE", "BF"]] + `shouldBe` Right [["AE", "BD", "CC", "BB"], ["AC", "FD", "EE", "EC"], ["FB", "EA", "DF", "DD"], ["CA", "DB", "CE", "BF"]] context "when the the keys set is too short" $ do it "cycles back to first character" $ do generateGrid 0 (4, 4) "AB" - `shouldBe` Nothing + `shouldBe` Left "Row/Column counts too high" describe "#findMatchPosition" $ do it "returns the position of the matching key sequence" $ do |
