* test/ruby/test_env.rb (test_has_value, test_index): condition for

aboves.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-11-28 10:38:00 +00:00
parent f284f6a41b
commit f2fdd59898
2 changed files with 6 additions and 1 deletions

View file

@ -49,6 +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)
ENV['test'] = val[0...-1]
assert_equal(false, ENV.has_value?(val))
assert_equal(false, ENV.has_value?(val.upcase))
@ -63,6 +64,7 @@ class TestEnv < Test::Unit::TestCase
def test_index
val = 'a'
val.succ! while ENV.has_value?(val) && ENV.has_value?(val.upcase)
ENV['test'] = val[0...-1]
assert_nil(ENV.index(val))
assert_nil(ENV.index(val.upcase))