25 lines
498 B
Kotlin
25 lines
498 B
Kotlin
package be.ugent.logprog
|
|
|
|
import org.junit.jupiter.api.Test
|
|
|
|
import org.junit.jupiter.api.Assertions.*
|
|
import testMe
|
|
|
|
class MainTest {
|
|
@Test
|
|
fun Main_should_return_string() {
|
|
assertTrue(true)
|
|
}
|
|
|
|
@Test
|
|
fun testMe_should_return_string() {
|
|
assertEquals("Hello, Kotlin Command Line Utility!", testMe())
|
|
assertInstanceOf(String::class.java, testMe())
|
|
}
|
|
|
|
@Test
|
|
fun testMe_shouldfail() {
|
|
assertTrue(false, "This test should fail");
|
|
}
|
|
}
|
|
|