chore: Project structure
This commit is contained in:
parent
948de3de02
commit
4054ed5fce
9 changed files with 511 additions and 2 deletions
25
tests/someTest.kt
Normal file
25
tests/someTest.kt
Normal file
|
@ -0,0 +1,25 @@
|
|||
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");
|
||||
}
|
||||
}
|
||||
|
Reference in a new issue