mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@4f59d86
This commit is contained in:
parent
342fbae83c
commit
148961adcd
47 changed files with 725 additions and 61 deletions
14
spec/ruby/core/array/minmax_spec.rb
Normal file
14
spec/ruby/core/array/minmax_spec.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
require_relative '../../spec_helper'
|
||||
require_relative '../../shared/enumerable/minmax'
|
||||
|
||||
describe "Array#minmax" do
|
||||
before :each do
|
||||
@enum = [6, 4, 5, 10, 8]
|
||||
@empty_enum = []
|
||||
@incomparable_enum = [BasicObject.new, BasicObject.new]
|
||||
@incompatible_enum = [11, "22"]
|
||||
@strs = ["333", "2", "60", "55555", "1010", "111"]
|
||||
end
|
||||
|
||||
it_behaves_like :enumerable_minmax, :minmax
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue