This repository has been archived on 2025-09-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2025LogProg-project-GhentPr.../tests/someTest.kt

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");
}
}