diff options
author | aycabta <[email protected]> | 2021-07-14 16:27:17 +0900 |
---|---|---|
committer | git <[email protected]> | 2021-07-16 01:55:16 +0900 |
commit | 456d0019dddec74b80583f02ffdb7d84b096ab32 (patch) | |
tree | 76627b838f86f050edcf5249677e2412c9b39c04 /test | |
parent | feec80a36286cefb3a403bb5661176a331f1d3b0 (diff) |
[ruby/irb] Escape space in free-spacing mode
https://github.com/ruby/irb/commit/085ac42947
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_cmd.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index e306137b10..adf671f205 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -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 |