reified assertFailsWith available in kotlin-test for JS

#KT-11346
This commit is contained in:
Ilya Gorbunov
2016-04-25 19:40:22 +03:00
parent 409094f0f7
commit 4b533b297e
9 changed files with 43 additions and 35 deletions
@@ -28,7 +28,7 @@ class ValByMapExtensionsTest {
assertEquals(null, f)
assertEquals(1, i)
assertEquals(1.0, x)
assertTrue(assertFails { d } is NoSuchElementException)
assertFailsWith<NoSuchElementException> { d }
}
}
@@ -63,7 +63,7 @@ class VarByMapExtensionsTest {
map["a"] = null
a // fails { a } // does not fail due to KT-8135
assertTrue(assertFails { d } is NoSuchElementException)
assertFailsWith<NoSuchElementException> { d }
map["d"] = null
assertEquals(null, d)
}