summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/array.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/t/array.rb b/test/t/array.rb
index 95432d5df..48f2fe0c4 100644
--- a/test/t/array.rb
+++ b/test/t/array.rb
@@ -51,9 +51,9 @@ assert('Array#[]', '15.2.12.5.4') do
assert_equal(nil, [1,2,3].[](-4))
a = [ "a", "b", "c", "d", "e" ]
- assert_equal(a[1.1], "b")
- assert_equal(a[1,2], ["b", "c"])
- assert_equal(a[1..-2], ["b", "c", "d"])
+ assert_equal("b", a[1.1])
+ assert_equal(["b", "c"], a[1,2])
+ assert_equal(["b", "c", "d"], a[1..-2])
end
assert('Array#[]=', '15.2.12.5.5') do