From 091fb1c2e49ab52b6433186a7bfca7f1a43a8376 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 13 Jul 2007 03:47:18 +0000 Subject: [PATCH] add test for [ruby-dev:31197]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_array.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 4667f4cff7..0d88f26dc0 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -691,6 +691,8 @@ class TestArray < Test::Unit::TestCase assert_equal(@cls[], @cls[].flatten) assert_equal(@cls[], @cls[@cls[@cls[@cls[],@cls[]],@cls[@cls[]],@cls[]],@cls[@cls[@cls[]]]].flatten) + + assert_raise(TypeError, "[ruby-dev:31197]") { [[]].flatten("") } end def test_flatten!