mirror of
https://github.com/irmen/prog8.git
synced 2024-11-29 17:50:35 +00:00
22 lines
425 B
Kotlin
22 lines
425 B
Kotlin
|
|
package demo
|
|
|
|
import org.hamcrest.MatcherAssert.assertThat
|
|
import org.hamcrest.Matchers.equalTo
|
|
import org.hamcrest.CoreMatchers.`is` as Is
|
|
import org.junit.jupiter.api.Test
|
|
import org.junit.jupiter.api.TestInstance
|
|
|
|
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
|
|
class TestSource {
|
|
@Test
|
|
fun f() {
|
|
assertThat(2, Is(equalTo(2)))
|
|
}
|
|
|
|
@Test
|
|
fun f2() {
|
|
assertThat(2, Is(equalTo(3)))
|
|
}
|
|
}
|