summaryrefslogtreecommitdiff
path: root/test/irb/test_cmd.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-30 11:44:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-30 11:44:22 +0900
commitb3ce6fa099b2fdb330d19372ab1a51fd7c97fc51 (patch)
treea6a12b3fb985347f7a8e6ea3bddd61d8ad9a86dd /test/irb/test_cmd.rb
parent7e5253d15ea1d2cdfc7942213f9c7ba79c3eda2b (diff)
[ruby/irb] Relaxed regexp for readline
Readline::VERSION may not be a single word, e.g EditLine wrapper when linked with editline.
Diffstat (limited to 'test/irb/test_cmd.rb')
-rw-r--r--test/irb/test_cmd.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb
index 7a9e7d79e1..92b65dd5d0 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -101,7 +101,7 @@ module TestIRB
expected = %r{
Ruby\sversion: .+\n
IRB\sversion:\sirb .+\n
- InputMethod:\sReadlineInputMethod\swith\s[^ ]+\s[^ ]+(?!\sand\s.+)\n
+ InputMethod:\sReadlineInputMethod\swith\s(?~.*\sand\s.+)\n
\z
}x
assert_match expected, irb.context.main.irb_info.to_s