diff options
author | Heejong Lee <heejong@gmail.com> | 2013-04-30 20:42:58 +0900 |
---|---|---|
committer | Heejong Lee <heejong@gmail.com> | 2013-04-30 20:42:58 +0900 |
commit | 6890f382baec625e01c3850243d826645c60dbe6 (patch) | |
tree | 1a13a4dcb170e237baacbfd252b43bac771cf717 | |
parent | 357c2df4766a35089d91f92067b0cb87924f0ec9 (diff) | |
download | scala-6890f382baec625e01c3850243d826645c60dbe6.tar.gz scala-6890f382baec625e01c3850243d826645c60dbe6.tar.bz2 scala-6890f382baec625e01c3850243d826645c60dbe6.zip |
SI-7432 add testcases
-rw-r--r-- | test/files/run/range.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/range.scala b/test/files/run/range.scala index f08b2105d3..b81e67921a 100644 --- a/test/files/run/range.scala +++ b/test/files/run/range.scala @@ -16,6 +16,17 @@ object Test { catch { case _: IllegalArgumentException => true } ) assert(caught) + // #7432 + val noElemAtMin = ( + try { (10 until 10).min ; false } + catch { case _: NoSuchElementException => true } + ) + assert(noElemAtMin) + val noElemAtMax = ( + try { (10 until 10).max ; false } + catch { case _: NoSuchElementException => true } + ) + assert(noElemAtMax) } case class GR[T](val x: T)(implicit val num: Integral[T]) { |