summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-03-17 09:44:20 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-03-17 09:48:27 +0900
commit75ae3d3e23cf7c27d66c1eb14e0d09331aa1d8c7 (patch)
treebfec34c48394743122637079e2463d34e72611ed /test
parent80f6b14ac148b2b7e840ad9d404bfe253adf21d8 (diff)
downloadmruby-75ae3d3e23cf7c27d66c1eb14e0d09331aa1d8c7.tar.gz
mruby-75ae3d3e23cf7c27d66c1eb14e0d09331aa1d8c7.zip
range.c: fixed a begin-less ranges issue.
Diffstat (limited to 'test')
-rw-r--r--test/t/array.rb1
1 files changed, 1 insertions, 0 deletions
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