diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_array.rb | 10 |
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 |
