summaryrefslogtreecommitdiffhomepage
path: root/test/t
diff options
context:
space:
mode:
authorksss <[email protected]>2014-02-28 08:50:02 +0900
committerksss <[email protected]>2014-02-28 08:50:26 +0900
commita14a67291526691c1939606cd6f1a09d544c8853 (patch)
treee93a68526948a929d8b91d7b234b87eb1a69235a /test/t
parent25822f2430eb31ecf012264a53f6a82fc7d6ad30 (diff)
downloadmruby-a14a67291526691c1939606cd6f1a09d544c8853.tar.gz
mruby-a14a67291526691c1939606cd6f1a09d544c8853.zip
fix test for Array#[]
Diffstat (limited to 'test/t')
-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