зеркало из https://github.com/github/ruby.git
Environment variable values are not case-insensitive
Only the names are case-sensitive.
This commit is contained in:
Родитель
db0d850d4e
Коммит
67e4d5e623
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче