1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_env.rb (class TestEnv): fix typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tarui 2010-06-06 04:27:29 +00:00
parent 28754d0aa9
commit 6ae881af48

View file

@ -49,7 +49,7 @@ class TestEnv < Test::Unit::TestCase
def test_has_value def test_has_value
val = 'a' 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] ENV['test'] = val[0...-1]
assert_equal(false, ENV.has_value?(val)) assert_equal(false, ENV.has_value?(val))
@ -64,7 +64,7 @@ class TestEnv < Test::Unit::TestCase
def test_key def test_key
val = 'a' 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] ENV['test'] = val[0...-1]
assert_nil(ENV.key(val)) assert_nil(ENV.key(val))