diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-07-04 18:54:50 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-07-04 18:54:50 +0900 |
commit | 265b9a0edf48e96d053724c9676af953e920246c (patch) | |
tree | 85dee32522a7e0454966b2e7f8f0d6b77dda43e4 /test | |
parent | 12e06d32f55dff7f35c66842e5d6901857132060 (diff) |
Parse key sequence more strictly
Diffstat (limited to 'test')
-rw-r--r-- | test/reline/test_config.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/reline/test_config.rb b/test/reline/test_config.rb index ee006b72dc..58f265d817 100644 --- a/test/reline/test_config.rb +++ b/test/reline/test_config.rb @@ -33,6 +33,11 @@ class Reline::Config::Test < Reline::TestCase assert_not_include @config.key_bindings, nil end + def test_invalid_keystroke + @config.read_lines(["a: error\n"]) + assert_not_include @config.key_bindings, nil + end + def test_bind_key assert_equal ['input'.bytes, 'abcde'.bytes], @config.bind_key('"input"', '"abcde"') end |