aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/commands_test.coffee6
1 files changed, 6 insertions, 0 deletions
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 "<c-a>", "<c-a>", 1
@testKeySequence "<c-A>", "<c-A>", 1
+ @testKeySequence "<C-A>", "<c-A>", 1
@testKeySequence "<c-a><a-b>", "<c-a>/<a-b>", 2
@testKeySequence "<m-a>", "<m-a>", 1
@@ -45,6 +46,11 @@ context "Key mappings",
@testKeySequence "<<space>", "</<space>", 2
@testKeySequence "<C->>", "<c->>", 1
+ should "negative tests", ->
+ # These should not be parsed as modifiers.
+ @testKeySequence "<b-a>", "</b/-/a/>", 5
+ @testKeySequence "<c-@@>", "</c/-/@/@/>", 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