diff options
author | Go <[email protected]> | 2024-05-26 17:28:21 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-05-26 08:28:25 +0000 |
commit | 508f3310481c34fe146bcd6775041847d40520c9 (patch) | |
tree | 7cbabc8beeb0eef0d052a2239cdf897a81583a4d /test/reline | |
parent | d2c4363e0c41c1512eb100981134db210c092126 (diff) |
[ruby/reline] allow space in config value
(https://github.com/ruby/reline/pull/705)
* allow space in config value
fix https://github.com/ruby/reline/pull/657
* remove inline comments
* Revert "remove inline comments"
This reverts commit https://github.com/ruby/reline/commit/2438347c1a10.
* refactoring
* remove unnecessary comment handling
https://github.com/ruby/reline/commit/d60f1e1e39
Diffstat (limited to 'test/reline')
-rw-r--r-- | test/reline/test_config.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/reline/test_config.rb b/test/reline/test_config.rb index 6068292847..03e4178f32 100644 --- a/test/reline/test_config.rb +++ b/test/reline/test_config.rb @@ -459,6 +459,17 @@ class Reline::Config::Test < Reline::TestCase ENV['INPUTRC'] = inputrc_backup end + def test_inputrc_raw_value + @config.read_lines(<<~'LINES'.lines) + set editing-mode vi ignored-string + set vi-ins-mode-string aaa aaa + set vi-cmd-mode-string bbb ccc # comment + LINES + assert_equal :vi_insert, @config.instance_variable_get(:@editing_mode_label) + assert_equal 'aaa aaa', @config.vi_ins_mode_string + assert_equal 'bbb ccc # comment', @config.vi_cmd_mode_string + end + def test_inputrc_with_utf8 # This file is encoded by UTF-8 so this heredoc string is also UTF-8. @config.read_lines(<<~'LINES'.lines) @@ -542,4 +553,3 @@ class Reline::Config::Test < Reline::TestCase ENV['HOME'] = home_backup end end - |