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

add test for [ruby-dev:31197].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-07-13 03:47:18 +00:00
parent 853999fb20
commit 091fb1c2e4

View file

@ -691,6 +691,8 @@ class TestArray < Test::Unit::TestCase
assert_equal(@cls[], @cls[].flatten) assert_equal(@cls[], @cls[].flatten)
assert_equal(@cls[], assert_equal(@cls[],
@cls[@cls[@cls[@cls[],@cls[]],@cls[@cls[]],@cls[]],@cls[@cls[@cls[]]]].flatten) @cls[@cls[@cls[@cls[],@cls[]],@cls[@cls[]],@cls[]],@cls[@cls[@cls[]]]].flatten)
assert_raise(TypeError, "[ruby-dev:31197]") { [[]].flatten("") }
end end
def test_flatten! def test_flatten!