summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/array.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/t/array.rb b/test/t/array.rb
index 1125ee98c..643a975b0 100644
--- a/test/t/array.rb
+++ b/test/t/array.rb
@@ -17,7 +17,11 @@ assert('Array.[]', '15.2.12.4.1') do
assert_equal([1, 2, 3], Array.[](1,2,3))
end
-assert('Array#*', '15.2.12.5.1') do
+assert('Array#+', '15.2.12.5.1') do
+ assert_equal([1, 1], [1].+([1]))
+end
+
+assert('Array#*', '15.2.12.5.2') do
assert_raise(ArgumentError) do
# this will cause an exception due to the wrong argument
[1].*(-1)
@@ -26,10 +30,6 @@ assert('Array#*', '15.2.12.5.1') do
assert_equal([], [1].*(0))
end
-assert('Array#+', '15.2.12.5.2') do
- assert_equal([1, 1], [1].+([1]))
-end
-
assert('Array#<<', '15.2.12.5.3') do
assert_equal([1, 1], [1].<<(1))
end