aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2020-07-25 12:00:39 +0900
committernagachika <nagachika@ruby-lang.org>2020-07-25 12:00:39 +0900
commit89f06ce8b8a887f12b53ea190d79a58e98b59008 (patch)
tree983a679a9ac164a09e252dab313460e918dfd047 /test
parent2e9626fddd168bd12352b4f5dc3412c6a33ce44e (diff)
downloadruby-89f06ce8b8a887f12b53ea190d79a58e98b59008.tar.gz
merge revision(s) 08529a61153e5c40f57a65272211357511d6e6db: [Backport #16798]
Compare environment variable names in those manor [Bug #16798]
Diffstat (limited to 'test')
-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