diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-18 20:45:39 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-18 23:19:57 +0900 |
commit | 67e4d5e62340223c95e35afaee855f8c821a499d (patch) | |
tree | 70a08f1e854580325917eefc811c496a055c298f /test/ruby/test_env.rb | |
parent | db0d850d4eac5577104e6d0f22950d97f53c5a13 (diff) | |
download | ruby-67e4d5e62340223c95e35afaee855f8c821a499d.tar.gz |
Environment variable values are not case-insensitive
Only the names are case-sensitive.
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r-- | test/ruby/test_env.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index 02cd3b8502..6d5fc88915 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -406,8 +406,8 @@ class TestEnv < Test::Unit::TestCase def check(as, bs) if IGNORE_CASE - as = as.map {|xs| xs.map {|x| x.upcase } } - bs = bs.map {|xs| xs.map {|x| x.upcase } } + as = as.map {|k, v| [k.upcase, v] } + bs = bs.map {|k, v| [k.upcase, v] } end assert_equal(as.sort, bs.sort) end |