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 (TestEnv#test_aset): test updated.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-09-22 23:38:04 +00:00
parent 3256a4dc21
commit 1c9b4b8c74
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,8 @@ Tue Sep 23 08:25:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* hash.c (env_aset): allow nil value to remove an entry.
[ruby-dev:36465]
* test/ruby/test_env.rb (TestEnv#test_aset): test updated.
Tue Sep 23 08:07:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* misc/ruby-mode.el (ruby-keyword-end-re): emacs21 support. a

View file

@ -118,7 +118,8 @@ class TestEnv < Test::Unit::TestCase
ENV["test"] = "foo"
end.join
end
assert_raise(TypeError) { ENV["test"] = nil }
assert_nothing_raised { ENV["test"] = nil }
assert_equal(nil, ENV["test"])
assert_raise(ArgumentError) { ENV["foo\0bar"] = "test" }
assert_raise(ArgumentError) { ENV["test"] = "foo\0bar" }
ENV[PATH_ENV] = "/tmp/".taint