1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Relaxed regexp for readline

Readline::VERSION may not be a single word, e.g EditLine wrapper
when linked with editline.
This commit is contained in:
Nobuyoshi Nakada 2020-04-30 11:44:09 +09:00
parent 7e5253d15e
commit b3ce6fa099
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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