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