diff options
author | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-06 04:27:29 +0000 |
---|---|---|
committer | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-06 04:27:29 +0000 |
commit | 46880d476219811e14d54c3615c3d778321f7a6a (patch) | |
tree | b46250c4bb2686edcddf7e8883a3864895767477 /test | |
parent | 6e787a638c11acadaaeb119dbfb8dc698696a059 (diff) |
* test/ruby/test_env.rb (class TestEnv): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_env.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index caa85d396d..060c50e68e 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -49,7 +49,7 @@ class TestEnv < Test::Unit::TestCase def test_has_value val = 'a' - val.succ! while ENV.has_value?(val) && ENV.has_value?(val.upcase) + val.succ! while ENV.has_value?(val) || ENV.has_value?(val.upcase) ENV['test'] = val[0...-1] assert_equal(false, ENV.has_value?(val)) @@ -64,7 +64,7 @@ class TestEnv < Test::Unit::TestCase def test_key val = 'a' - val.succ! while ENV.has_value?(val) && ENV.has_value?(val.upcase) + val.succ! while ENV.has_value?(val) || ENV.has_value?(val.upcase) ENV['test'] = val[0...-1] assert_nil(ENV.key(val)) |