fix test for Array#[]

This commit is contained in:
ksss
2014-02-28 08:50:02 +09:00
parent 25822f2430
commit a14a672915
+3 -3
View File
@@ -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