Skip to content

Commit b5e89c0

Browse files
committed
Test whether Nil.minBy throws UnsupportedOperationException
1 parent bd8509b commit b5e89c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

junit/src/test/scala/scala/collection/parallel/mutable/ParArrayTest.scala

+5
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,9 @@ class ParArrayTest extends scala.collection.concurrent.ctries_old.Spec {
143143
evaluating { ParArray.empty[Int].max }.shouldProduce[UnsupportedOperationException]()
144144
}
145145

146+
@Test
147+
def `empty minBy`: Unit = {
148+
evaluating { ParArray.empty[String].minBy(_.length) }.shouldProduce[UnsupportedOperationException]()
149+
}
150+
146151
}

0 commit comments

Comments
 (0)