From 67e4d5e62340223c95e35afaee855f8c821a499d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 18 Apr 2020 20:45:39 +0900 Subject: [PATCH] Environment variable values are not case-insensitive Only the names are case-sensitive. --- test/ruby/test_env.rb | 4 ++-- 1 file 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