mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Escape space in free-spacing mode
https://github.com/ruby/irb/commit/085ac42947
This commit is contained in:
parent
feec80a362
commit
456d0019dd
1 changed files with 14 additions and 14 deletions
|
@ -75,11 +75,11 @@ module TestIRB
|
|||
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||
expected = %r{
|
||||
Ruby\sversion: .+\n
|
||||
IRB\sversion:\sirb .+\n
|
||||
Ruby\sversion:\s.+\n
|
||||
IRB\sversion:\sirb\s.+\n
|
||||
InputMethod:\sAbstract\sInputMethod\n
|
||||
\.irbrc\spath: .+\n
|
||||
RUBY_PLATFORM: .+
|
||||
\.irbrc\spath:\s.+\n
|
||||
RUBY_PLATFORM:\s.+\n
|
||||
}x
|
||||
assert_match expected, irb.context.main.irb_info.to_s
|
||||
ensure
|
||||
|
@ -100,11 +100,11 @@ module TestIRB
|
|||
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||
expected = %r{
|
||||
Ruby\sversion: .+\n
|
||||
IRB\sversion:\sirb .+\n
|
||||
Ruby\sversion:\s.+\n
|
||||
IRB\sversion:\sirb\s.+\n
|
||||
InputMethod:\sAbstract\sInputMethod\n
|
||||
\.irbrc\spath: .+\n
|
||||
RUBY_PLATFORM: .+
|
||||
\.irbrc\spath:\s.+\n
|
||||
RUBY_PLATFORM:\s.+\n
|
||||
}x
|
||||
assert_match expected, irb.context.main.irb_info.to_s
|
||||
ensure
|
||||
|
@ -128,10 +128,10 @@ module TestIRB
|
|||
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||
expected = %r{
|
||||
Ruby\sversion: .+\n
|
||||
IRB\sversion:\sirb .+\n
|
||||
Ruby\sversion:\s.+\n
|
||||
IRB\sversion:\sirb\s.+\n
|
||||
InputMethod:\sAbstract\sInputMethod\n
|
||||
RUBY_PLATFORM: .+\n
|
||||
RUBY_PLATFORM:\s.+\n
|
||||
\z
|
||||
}x
|
||||
assert_match expected, irb.context.main.irb_info.to_s
|
||||
|
@ -159,10 +159,10 @@ module TestIRB
|
|||
irb = IRB::Irb.new(workspace, TestInputMethod.new([]))
|
||||
IRB.conf[:MAIN_CONTEXT] = irb.context
|
||||
expected = %r{
|
||||
Ruby\sversion: .+\n
|
||||
IRB\sversion:\sirb .+\n
|
||||
Ruby\sversion:\s.+\n
|
||||
IRB\sversion:\sirb\s.+\n
|
||||
InputMethod:\sAbstract\sInputMethod\n
|
||||
RUBY_PLATFORM: .+\n
|
||||
RUBY_PLATFORM:\s.+\n
|
||||
\z
|
||||
}x
|
||||
assert_match expected, irb.context.main.irb_info.to_s
|
||||
|
|
Loading…
Add table
Reference in a new issue