From 3cabcc92adebabf7b5665fddc29c2fa3330ec000 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 2 Oct 2016 14:11:24 +0100 Subject: More key-sequance parser tests. --- tests/unit_tests/commands_test.coffee | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/unit_tests') diff --git a/tests/unit_tests/commands_test.coffee b/tests/unit_tests/commands_test.coffee index c8ded6a9..508e298b 100644 --- a/tests/unit_tests/commands_test.coffee +++ b/tests/unit_tests/commands_test.coffee @@ -18,6 +18,7 @@ context "Key mappings", should "parse keys with modifiers", -> @testKeySequence "", "", 1 @testKeySequence "", "", 1 + @testKeySequence "", "", 1 @testKeySequence "", "/", 2 @testKeySequence "", "", 1 @@ -45,6 +46,11 @@ context "Key mappings", @testKeySequence "<", "", 2 @testKeySequence ">", ">", 1 + should "negative tests", -> + # These should not be parsed as modifiers. + @testKeySequence "", "", 5 + @testKeySequence "", "", 6 + context "Validate commands and options", should "have either noRepeat or repeatLimit, but not both", -> # TODO(smblott) For this and each following test, is there a way to structure the tests such that the name -- cgit v1.2.3