Commit a14a6729 authored by ksss's avatar ksss

fix test for Array#[]

parent 25822f24
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment