Permalink
Browse files

clean up some over-aggressive catches

  • Loading branch information...
1 parent cfa3ad4 commit bb628191bf3f37f8b5b980ec08f95fb680fc5016 @non committed Apr 6, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 core/src/test/scala/spire/math/UnsignedTest.scala
@@ -41,7 +41,7 @@ class ULongTest extends PropSpec with ShouldMatchers with GeneratorDrivenPropert
false
} catch {
case _: ArithmeticException => true
- case _ => false
+ case _: Exception => false
}
error should be === true
}
@@ -125,7 +125,7 @@ class UIntTest extends PropSpec with ShouldMatchers with GeneratorDrivenProperty
false
} catch {
case _: ArithmeticException => true
- case _ => false
+ case _: Exception => false
}
error should be === true
}
@@ -209,7 +209,7 @@ class UShortTest extends PropSpec with ShouldMatchers with GeneratorDrivenProper
false
} catch {
case _: ArithmeticException => true
- case _ => false
+ case _: Exception => false
}
error should be === true
}
@@ -297,7 +297,7 @@ class UByteTest extends PropSpec with ShouldMatchers with GeneratorDrivenPropert
false
} catch {
case _: ArithmeticException => true
- case _ => false
+ case _: Exception => false
}
error should be === true
}

0 comments on commit bb62819

Please sign in to comment.