From 75ae3d3e23cf7c27d66c1eb14e0d09331aa1d8c7 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 17 Mar 2021 09:44:20 +0900 Subject: range.c: fixed a begin-less ranges issue. --- test/t/array.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/t/array.rb b/test/t/array.rb index 1e224a034..7410233d3 100644 --- a/test/t/array.rb +++ b/test/t/array.rb @@ -58,6 +58,7 @@ assert('Array#[]', '15.2.12.5.4') do assert_equal(["b", "c"], a[1,2]) assert_equal(["b", "c", "d"], a[1..-2]) assert_equal(["b", "c", "d", "e"], a[1..]) + assert_equal(["a", "b", "c"], a[..2]) skip unless Object.const_defined?(:Float) assert_equal("b", a[1.1]) end -- cgit v1.2.3