ruby-changes:60826
From: Nobuyoshi <ko1@a...>
Date: Sun, 19 Apr 2020 00:35:18 +0900 (JST)
Subject: [ruby-changes:60826] 67e4d5e623 (master): Environment variable values are not case-insensitive
https://git.ruby-lang.org/ruby.git/commit/?id=67e4d5e623 From 67e4d5e62340223c95e35afaee855f8c821a499d Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 18 Apr 2020 20:45:39 +0900 Subject: Environment variable values are not case-insensitive Only the names are case-sensitive. diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index 02cd3b8..6d5fc88 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -406,8 +406,8 @@ class TestEnv < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_env.rb#L406 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/