mirror of
https://github.com/irmen/prog8.git
synced 2024-09-11 00:54:31 +00:00
22 lines
427 B
Kotlin
22 lines
427 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)))
|
|
}
|
|
}
|