diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-23 16:28:28 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-09-23 18:01:36 +0900 |
commit | ede95f541b15d8f95db0215716e005b989a1e7d5 (patch) | |
tree | 3b28374ee6d88e2de9f5fa0d905d88ea76bef0da /test | |
parent | e6118c8108b6233615618ba1d048336ef83c6ff6 (diff) |
[ruby/irb] Ignore any encoding errors while symbol completion
https://github.com/ruby/irb/commit/daa65cded1
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_completion.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb index d94c471996..a1aa4b898d 100644 --- a/test/irb/test_completion.rb +++ b/test/irb/test_completion.rb @@ -27,6 +27,10 @@ module TestIRB end def test_complete_symbol + %w"UTF-16LE UTF-7".each do |enc| + "K".force_encoding(enc).to_sym + rescue + end _ = :aiueo assert_include(IRB::InputCompletor.retrieve_completion_data(":a", bind: binding), ":aiueo") assert_empty(IRB::InputCompletor.retrieve_completion_data(":irb_unknown_symbol_abcdefg", bind: binding)) |