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:
parent
db0d850d4e
commit
67e4d5e623
Notes:
git
2020-04-19 00:35:35 +09:00
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue