summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-07 04:59:00 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-02-07 04:59:00 +0000
commitc93458e0e67b0f1ca023e2af6be6abac8fa515ec (patch)
tree0e24da217c9f63e859ea2604dfaad185ddd2b9c7 /test/ruby
parent34c1959519f2bf904b2e0f2e304099f9e6fc04ad (diff)
This even fails.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_array.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index fe10a69e68..8ddb2d5a45 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -1323,5 +1323,15 @@ class TestArray < Test::Unit::TestCase
false
end
)
+
+ a = [1, 2, 3]
+ assert_equal(true,
+ case 2
+ when 2, *a
+ true
+ else
+ false
+ end
+ )
end
end