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

* 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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-10-24 09:25:05 +00:00
parent 5f7be192df
commit 9afe0278b3
3 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,10 @@
Fri Oct 24 18:21:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* 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@ruby-lang.org>
* parse.y (lambda): need to adjust lpar_beg for ripper as well.

View file

@ -814,6 +814,8 @@ class TestArray < Test::Unit::TestCase
s = a.join
assert_equal(true, s.tainted?)
assert_equal(true, s.untrusted?)
ensure
$, = nil
end
def test_last
@ -1220,8 +1222,8 @@ class TestArray < Test::Unit::TestCase
$, = ":"
a = @cls[1, 2, 3]
assert_equal("[1, 2, 3]", a.to_s)
$, = ""
ensure
$, = nil
end
def test_uniq

View file

@ -627,6 +627,7 @@ class TestHash < Test::Unit::TestCase
assert_equal(h.inspect, h.to_s)
h = @cls[]
assert_equal(h.inspect, h.to_s)
ensure
$, = nil
end