aboutsummaryrefslogtreecommitdiffstats
path: root/test/irb/test_cmd.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-07-14 16:27:17 +0900
committergit <svn-admin@ruby-lang.org>2021-07-16 01:55:16 +0900
commit456d0019dddec74b80583f02ffdb7d84b096ab32 (patch)
tree76627b838f86f050edcf5249677e2412c9b39c04 /test/irb/test_cmd.rb
parentfeec80a36286cefb3a403bb5661176a331f1d3b0 (diff)
downloadruby-456d0019dddec74b80583f02ffdb7d84b096ab32.tar.gz
[ruby/irb] Escape space in free-spacing mode
https://github.com/ruby/irb/commit/085ac42947
Diffstat (limited to 'test/irb/test_cmd.rb')
-rw-r--r--test/irb/test_cmd.rb28
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