JS: move inline test to box tests
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package foo
|
||||
|
||||
fun test(x: Boolean): Boolean =
|
||||
if (fizz(x)) buzz(true) else buzz(false)
|
||||
|
||||
fun box(): String {
|
||||
assertEquals(true, test(true))
|
||||
assertEquals("fizz(true);buzz(true);", pullLog())
|
||||
assertEquals(false, test(false))
|
||||
assertEquals("fizz(false);buzz(false);", pullLog())
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user