summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-03-18 17:55:46 +0900
committerNobuyoshi Nakada <[email protected]>2025-03-18 17:55:46 +0900
commitc7f31c88aeed45607d2abc6b641ad2ccfd77e240 (patch)
treeb6ec5573e12da60e6a77a6da317f25496ee4fb25 /spec/ruby/core/array
parent76aaf8ddf4b13411f925085046cee2422bb9902e (diff)
[Feature #20702] Tests for Array#fetch_values
Diffstat (limited to 'spec/ruby/core/array')
-rw-r--r--spec/ruby/core/array/fetch_values_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/ruby/core/array/fetch_values_spec.rb b/spec/ruby/core/array/fetch_values_spec.rb
index 559b6c2b2f..075dcc7a52 100644
--- a/spec/ruby/core/array/fetch_values_spec.rb
+++ b/spec/ruby/core/array/fetch_values_spec.rb
@@ -11,6 +11,7 @@ describe "Array#fetch_values" do
it "returns the values for indexes" do
@array.fetch_values(0).should == [:a]
@array.fetch_values(0, 2).should == [:a, :c]
+ @array.fetch_values(-1).should == [:c]
end
it "returns the values for indexes ordered in the order of the requested indexes" do