From 6c2b59f9237843a4570d0ab932705b3fa5c18524 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 4 Jul 2019 20:58:11 +0900 Subject: Support Control- and Meta- --- test/reline/test_config.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/reline') 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 -- cgit v1.2.3