1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Environment variable values are not case-insensitive

Only the names are case-sensitive.
This commit is contained in:
Nobuyoshi Nakada 2020-04-18 20:45:39 +09:00
parent db0d850d4e
commit 67e4d5e623
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2020-04-19 00:35:35 +09:00

View file

@ -406,8 +406,8 @@ class TestEnv < Test::Unit::TestCase
def check(as, bs) def check(as, bs)
if IGNORE_CASE if IGNORE_CASE
as = as.map {|xs| xs.map {|x| x.upcase } } as = as.map {|k, v| [k.upcase, v] }
bs = bs.map {|xs| xs.map {|x| x.upcase } } bs = bs.map {|k, v| [k.upcase, v] }
end end
assert_equal(as.sort, bs.sort) assert_equal(as.sort, bs.sort)
end end