From f5ec2115b55a246c7532175d0db13d2394934e59 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 28 Feb 2014 10:01:39 +0900 Subject: swap actual and expected; ref #1764 --- test/t/array.rb | 6 +++--- 1 file 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 -- cgit v1.2.3