Skip to content

Commit e578b77

Browse files
committed
Test whether Nil.maxBy throws UnsupportedOperationException
1 parent b5e89c0 commit e578b77

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
@@ -148,4 +148,9 @@ class ParArrayTest extends scala.collection.concurrent.ctries_old.Spec {
148148
evaluating { ParArray.empty[String].minBy(_.length) }.shouldProduce[UnsupportedOperationException]()
149149
}
150150

151+
@Test
152+
def `emtpy maxBy`: Unit = {
153+
evaluating { ParArray.empty[String].maxBy(_.length) }.shouldProduce[UnsupportedOperationException]()
154+
}
155+
151156
}

0 commit comments

Comments
 (0)