prog8/il65/test/UnitTests.kt

22 lines
425 B
Kotlin
Raw Normal View History

2018-08-10 00:58:41 +00:00
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)
2018-08-11 12:06:43 +00:00
class TestSource {
2018-08-10 00:58:41 +00:00
@Test
fun f() {
assertThat(2, Is(equalTo(2)))
}
@Test
fun f2() {
assertThat(2, Is(equalTo(3)))
}
}