compile the assertions and a test case to QUnit on JS and got a working example to run the unit test case - yay!

This commit is contained in:
James Strachan
2012-06-13 16:14:13 +01:00
parent 9394e21208
commit 3765e85ca8
12 changed files with 170 additions and 76 deletions
+3
View File
@@ -1,16 +1,19 @@
package testPackage
import org.junit.Test as test
import kotlin.test.*
class SimpleTest {
public fun testFoo() {
val name = "world"
val message = "hello $name!"
assertEquals("hello world", message)
}
test fun cheese() {
val name = "world"
val message = "bye $name!"
assertEquals("bye world!", message)
}
}