Skip to content

Commit

Permalink
Test whether Nil.maxBy throws UnsupportedOperationException
Browse files Browse the repository at this point in the history
  • Loading branch information
xirc committed Mar 19, 2021
1 parent b5e89c0 commit e578b77
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,9 @@ class ParArrayTest extends scala.collection.concurrent.ctries_old.Spec {
evaluating { ParArray.empty[String].minBy(_.length) }.shouldProduce[UnsupportedOperationException]()
}

@Test
def `emtpy maxBy`: Unit = {
evaluating { ParArray.empty[String].maxBy(_.length) }.shouldProduce[UnsupportedOperationException]()
}

}

0 comments on commit e578b77

Please sign in to comment.