summaryrefslogtreecommitdiff
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r--test/ruby/test_array.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 1b102c4658..aaf3eca58c 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -549,7 +549,9 @@ class TestArray < Test::Unit::TestCase
assert_kind_of Enumerator, @cls[1, 2, 3].collect
- assert_equal([[1, 2, 3]], [[1, 2, 3]].collect(&->(a, b, c) {[a, b, c]}))
+ assert_raise(ArgumentError) {
+ assert_equal([[1, 2, 3]], [[1, 2, 3]].collect(&->(a, b, c) {[a, b, c]}))
+ }
end
# also update map!