diff options
author | aycabta <aycabta@gmail.com> | 2021-02-09 17:29:38 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-02-11 20:36:43 +0900 |
commit | 6eb5b3ac27ceebc0c6a1306678377c016552c9ad (patch) | |
tree | 5ec89473196d0f43a23b7891a63a8f86d3ffe229 /test/irb | |
parent | b2d2d25b94fd9699408759f5b8b394f54f57ef89 (diff) |
[ruby/irb] The command "irb_info" should show RUBY_PLATFORM
https://github.com/ruby/irb/commit/39d1cd874f
Diffstat (limited to 'test/irb')
-rw-r--r-- | test/irb/test_cmd.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb index 7219473..41f84f1 100644 --- a/test/irb/test_cmd.rb +++ b/test/irb/test_cmd.rb @@ -48,7 +48,8 @@ module TestIRB Ruby\sversion: .+\n IRB\sversion:\sirb .+\n InputMethod:\sReidlineInputMethod\swith\sReline .+ and .+\n - \.irbrc\spath: .+ + \.irbrc\spath: .+\n + RUBY_PLATFORM: .+ }x assert_match expected, irb.context.main.irb_info.to_s end @@ -67,7 +68,8 @@ module TestIRB Ruby\sversion: .+\n IRB\sversion:\sirb .+\n InputMethod:\sReadlineInputMethod\swith .+ and .+\n - \.irbrc\spath: .+ + \.irbrc\spath: .+\n + RUBY_PLATFORM: .+ }x assert_match expected, irb.context.main.irb_info.to_s end @@ -89,6 +91,7 @@ module TestIRB Ruby\sversion: .+\n IRB\sversion:\sirb .+\n InputMethod:\sReidlineInputMethod\swith\sReline\s[^ ]+(?!\sand\s.+)\n + RUBY_PLATFORM: .+\n \z }x assert_match expected, irb.context.main.irb_info.to_s @@ -115,6 +118,7 @@ module TestIRB Ruby\sversion: .+\n IRB\sversion:\sirb .+\n InputMethod:\sReadlineInputMethod\swith\s(?~.*\sand\s.+)\n + RUBY_PLATFORM: .+\n \z }x assert_match expected, irb.context.main.irb_info.to_s |