ruby-changes:8379
From: matz <ko1@a...>
Date: Fri, 24 Oct 2008 18:25:26 +0900 (JST)
Subject: [ruby-changes:8379] Ruby:r19910 (trunk): * test/ruby/test_array.rb (TestArray#test_join): should restore
matz 2008-10-24 18:25:05 +0900 (Fri, 24 Oct 2008) New Revision: 19910 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19910 Log: * test/ruby/test_array.rb (TestArray#test_join): should restore global variable after the test. [ruby-dev:36896] * test/ruby/test_hash.rb (TestHash#test_to_s): ditto. Modified files: trunk/ChangeLog trunk/test/ruby/test_array.rb trunk/test/ruby/test_hash.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 19909) +++ ChangeLog (revision 19910) @@ -1,3 +1,10 @@ +Fri Oct 24 18:21:31 2008 Yukihiro Matsumoto <matz@r...> + + * test/ruby/test_array.rb (TestArray#test_join): should restore + global variable after the test. [ruby-dev:36896] + + * test/ruby/test_hash.rb (TestHash#test_to_s): ditto. + Fri Oct 24 17:43:26 2008 Yukihiro Matsumoto <matz@r...> * parse.y (lambda): need to adjust lpar_beg for ripper as well. Index: test/ruby/test_array.rb =================================================================== --- test/ruby/test_array.rb (revision 19909) +++ test/ruby/test_array.rb (revision 19910) @@ -814,6 +814,8 @@ s = a.join assert_equal(true, s.tainted?) assert_equal(true, s.untrusted?) + ensure + $, = nil end def test_last @@ -1220,8 +1222,8 @@ $, = ":" a = @cls[1, 2, 3] assert_equal("[1, 2, 3]", a.to_s) - - $, = "" + ensure + $, = nil end def test_uniq Index: test/ruby/test_hash.rb =================================================================== --- test/ruby/test_hash.rb (revision 19909) +++ test/ruby/test_hash.rb (revision 19910) @@ -627,6 +627,7 @@ assert_equal(h.inspect, h.to_s) h = @cls[] assert_equal(h.inspect, h.to_s) + ensure $, = nil end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/