We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27f3b7c commit da0d1d9Copy full SHA for da0d1d9
documentation/src/test/kotlin/example/KotlinAssertionsDemo.kt
@@ -38,10 +38,10 @@ class KotlinAssertionsDemo {
38
assertEquals(0, result)
39
}
40
41
- // tag::user_guide[]
42
- @Test
43
// end::user_guide[]
44
@extensions.DisabledOnOpenJ9
+ // tag::user_guide[]
+ @Test
45
fun `expected exception testing`() {
46
val calculator = Calculator()
47
val exception = assertThrows<ArithmeticException> ("Should throw an exception") {
0 commit comments