summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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 1398bdc6e..95432d5df 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" ]
- a[1.1] == "b" and
- a[1,2] == ["b", "c"] and
- a[1..-2] == ["b", "c", "d"]
+ assert_equal(a[1.1], "b")
+ assert_equal(a[1,2], ["b", "c"])
+ assert_equal(a[1..-2], ["b", "c", "d"])
end
assert('Array#[]=', '15.2.12.5.5') do