ruby-changes:66801
From: aycabta <ko1@a...>
Date: Fri, 16 Jul 2021 01:55:34 +0900 (JST)
Subject: [ruby-changes:66801] 456d0019dd (master): [ruby/irb] Escape space in free-spacing mode
https://git.ruby-lang.org/ruby.git/commit/?id=456d0019dd From 456d0019dddec74b80583f02ffdb7d84b096ab32 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 14 Jul 2021 16:27:17 +0900 Subject: [ruby/irb] Escape space in free-spacing mode https://github.com/ruby/irb/commit/085ac42947 --- test/irb/test_cmd.rb | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index e306137..adf671f 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -75,11 +75,11 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L75 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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L100 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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L128 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 https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L159 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 -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/