ruby-changes:7942
From: matz <ko1@a...>
Date: Tue, 23 Sep 2008 08:38:18 +0900 (JST)
Subject: [ruby-changes:7942] Ruby:r19464 (trunk): * test/ruby/test_env.rb (TestEnv#test_aset): test updated.
matz 2008-09-23 08:38:04 +0900 (Tue, 23 Sep 2008) New Revision: 19464 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19464 Log: * test/ruby/test_env.rb (TestEnv#test_aset): test updated. Modified files: trunk/ChangeLog trunk/test/ruby/test_env.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 19463) +++ ChangeLog (revision 19464) @@ -3,6 +3,8 @@ * 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@r...> * misc/ruby-mode.el (ruby-keyword-end-re): emacs21 support. a Index: test/ruby/test_env.rb =================================================================== --- test/ruby/test_env.rb (revision 19463) +++ test/ruby/test_env.rb (revision 19464) @@ -118,7 +118,8 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/