summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/minmax_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/minmax_spec.rb')
-rw-r--r--spec/ruby/core/array/minmax_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/ruby/core/array/minmax_spec.rb b/spec/ruby/core/array/minmax_spec.rb
new file mode 100644
index 0000000000..e11fe63347
--- /dev/null
+++ b/spec/ruby/core/array/minmax_spec.rb
@@ -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