summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-07-04 20:58:11 +0900
committeraycabta <aycabta@gmail.com>2019-07-04 20:58:11 +0900
commit6c2b59f9237843a4570d0ab932705b3fa5c18524 (patch)
tree2e0c0b5e2ef5f021cb0f98e3272d91b4b146e3b6 /test
parentd9f8b88b47c141e7dcbc50eb10812acaeca2a325 (diff)
Support Control- and Meta-
Diffstat (limited to 'test')
-rw-r--r--test/reline/test_config.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/reline/test_config.rb b/test/reline/test_config.rb
index 193b74ec03..ce2fa409a1 100644
--- a/test/reline/test_config.rb
+++ b/test/reline/test_config.rb
@@ -53,10 +53,12 @@ class Reline::Config::Test < Reline::TestCase
def test_bind_key_with_ctrl_chars
assert_equal ['input'.bytes, "\C-h\C-h".bytes], @config.bind_key('"input"', '"\C-h\C-H"')
+ assert_equal ['input'.bytes, "\C-h\C-h".bytes], @config.bind_key('"input"', '"\Control-h\Control-H"')
end
def test_bind_key_with_meta_chars
assert_equal ['input'.bytes, "\M-h\M-H".bytes], @config.bind_key('"input"', '"\M-h\M-H"')
+ assert_equal ['input'.bytes, "\M-h\M-H".bytes], @config.bind_key('"input"', '"\Meta-h\Meta-H"')
end
def test_bind_key_with_octal_number