summaryrefslogtreecommitdiff
path: root/test/ruby/test_env.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-18 20:39:07 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-18 23:09:01 +0900
commit08529a61153e5c40f57a65272211357511d6e6db (patch)
tree48849ace0916fe02bf9d6c291d31047a34c54540 /test/ruby/test_env.rb
parente042380e0e2d32c30e5c1ddb9ce0df81e15d44a0 (diff)
Compare environment variable names in those manor [Bug #16798]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3040
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r--test/ruby/test_env.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb
index f93cd503d8..02cd3b8502 100644
--- a/test/ruby/test_env.rb
+++ b/test/ruby/test_env.rb
@@ -433,6 +433,8 @@ class TestEnv < Test::Unit::TestCase
ENV["foo"] = "xxx"
ENV.replace({"foo"=>"bar", "baz"=>"qux"})
check(ENV.to_hash.to_a, [%w(foo bar), %w(baz qux)])
+ ENV.replace({"Foo"=>"Bar", "Baz"=>"Qux"})
+ check(ENV.to_hash.to_a, [%w(Foo Bar), %w(Baz Qux)])
end
def test_update