diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-28 10:38:00 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-28 10:38:00 +0000 |
| commit | c34fc17623eb208ee20bea6523e7222f42868754 (patch) | |
| tree | c10bab653cf4ff76ddc84b2ef5c375ca32c18148 | |
| parent | e30d3c5cb4e0680501240db7f40ae67cf61d0249 (diff) | |
| download | ruby-c34fc17623eb208ee20bea6523e7222f42868754.tar.gz ruby-c34fc17623eb208ee20bea6523e7222f42868754.tar.xz ruby-c34fc17623eb208ee20bea6523e7222f42868754.zip | |
* test/ruby/test_env.rb (test_has_value, test_index): condition for
aboves.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | test/ruby/test_env.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,7 +1,10 @@ -Fri Nov 28 19:28:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> +Fri Nov 28 19:37:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> * hash.c (env_has_value, env_index): must match exactly. + * test/ruby/test_env.rb (test_has_value, test_index): condition for + aboves. + Fri Nov 28 17:59:20 2003 NAKAMURA Usaku <usa@ruby-lang.org> * test/ruby/test_env.rb: add tests for ENV. diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index 6a7fd97c2..6ae28dbbe 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -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)) |
