[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:
parent
7e5253d15e
commit
b3ce6fa099
@ -101,7 +101,7 @@ module TestIRB
|
|||||||
expected = %r{
|
expected = %r{
|
||||||
Ruby\sversion: .+\n
|
Ruby\sversion: .+\n
|
||||||
IRB\sversion:\sirb .+\n
|
IRB\sversion:\sirb .+\n
|
||||||
InputMethod:\sReadlineInputMethod\swith\s[^ ]+\s[^ ]+(?!\sand\s.+)\n
|
InputMethod:\sReadlineInputMethod\swith\s(?~.*\sand\s.+)\n
|
||||||
\z
|
\z
|
||||||
}x
|
}x
|
||||||
assert_match expected, irb.context.main.irb_info.to_s
|
assert_match expected, irb.context.main.irb_info.to_s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user