[ruby/irb] Escape space in free-spacing mode
https://github.com/ruby/irb/commit/085ac42947
This commit is contained in:
parent
feec80a362
commit
456d0019dd
@ -75,11 +75,11 @@ module TestIRB
|
|||||||
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
expected = %r{
|
expected = %r{
|
||||||
Ruby\sversion: .+\n
|
Ruby\sversion:\s.+\n
|
||||||
IRB\sversion:\sirb .+\n
|
IRB\sversion:\sirb\s.+\n
|
||||||
InputMethod:\sAbstract\sInputMethod\n
|
InputMethod:\sAbstract\sInputMethod\n
|
||||||
\.irbrc\spath: .+\n
|
\.irbrc\spath:\s.+\n
|
||||||
RUBY_PLATFORM: .+
|
RUBY_PLATFORM:\s.+\n
|
||||||
}x
|
}x
|
||||||
assert_match expected, irb.context.main.irb_info.to_s
|
assert_match expected, irb.context.main.irb_info.to_s
|
||||||
ensure
|
ensure
|
||||||
@ -100,11 +100,11 @@ module TestIRB
|
|||||||
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
expected = %r{
|
expected = %r{
|
||||||
Ruby\sversion: .+\n
|
Ruby\sversion:\s.+\n
|
||||||
IRB\sversion:\sirb .+\n
|
IRB\sversion:\sirb\s.+\n
|
||||||
InputMethod:\sAbstract\sInputMethod\n
|
InputMethod:\sAbstract\sInputMethod\n
|
||||||
\.irbrc\spath: .+\n
|
\.irbrc\spath:\s.+\n
|
||||||
RUBY_PLATFORM: .+
|
RUBY_PLATFORM:\s.+\n
|
||||||
}x
|
}x
|
||||||
assert_match expected, irb.context.main.irb_info.to_s
|
assert_match expected, irb.context.main.irb_info.to_s
|
||||||
ensure
|
ensure
|
||||||
@ -128,10 +128,10 @@ module TestIRB
|
|||||||
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
expected = %r{
|
expected = %r{
|
||||||
Ruby\sversion: .+\n
|
Ruby\sversion:\s.+\n
|
||||||
IRB\sversion:\sirb .+\n
|
IRB\sversion:\sirb\s.+\n
|
||||||
InputMethod:\sAbstract\sInputMethod\n
|
InputMethod:\sAbstract\sInputMethod\n
|
||||||
RUBY_PLATFORM: .+\n
|
RUBY_PLATFORM:\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
|
||||||
@ -159,10 +159,10 @@ module TestIRB
|
|||||||
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
||||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||||
expected = %r{
|
expected = %r{
|
||||||
Ruby\sversion: .+\n
|
Ruby\sversion:\s.+\n
|
||||||
IRB\sversion:\sirb .+\n
|
IRB\sversion:\sirb\s.+\n
|
||||||
InputMethod:\sAbstract\sInputMethod\n
|
InputMethod:\sAbstract\sInputMethod\n
|
||||||
RUBY_PLATFORM: .+\n
|
RUBY_PLATFORM:\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