Introduce common ArithmeticException

Make divisionByZero test still fail in JS after introducing ArithmeticException
This commit is contained in:
Ilya Gorbunov
2018-08-09 23:39:17 +03:00
parent ceb909d261
commit 2df78fc81a
5 changed files with 30 additions and 9 deletions
+1
View File
@@ -22,6 +22,7 @@ class ExceptionTest {
@Test fun nullPointerException() = testCreateException(::NullPointerException, ::NullPointerException)
@Test fun classCastException() = testCreateException(::ClassCastException, ::ClassCastException)
@Test fun noSuchElementException() = testCreateException(::NoSuchElementException, ::NoSuchElementException)
@Test fun arithmeticException() = testCreateException(::ArithmeticException, ::ArithmeticException)
@Test fun noWhenBranchMatchedException() = testCreateException(::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException, ::NoWhenBranchMatchedException)
@Test fun uninitializedPropertyAccessException() = testCreateException(::UninitializedPropertyAccessException, ::UninitializedPropertyAccessException, ::UninitializedPropertyAccessException, ::UninitializedPropertyAccessException)