JS: create new common directory for all generated tests, migrate several tests there
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
package foo
|
||||
|
||||
val f = true
|
||||
|
||||
fun box(): String {
|
||||
var bar = ""
|
||||
var boo = 23
|
||||
|
||||
fun baz() {
|
||||
bar += "test "
|
||||
|
||||
if (f) {
|
||||
val v1 = 42
|
||||
var bar = 12
|
||||
bar += v1
|
||||
|
||||
val v2 = 7
|
||||
var boo = ""
|
||||
boo += v2
|
||||
}
|
||||
|
||||
boo += 7
|
||||
bar += "text"
|
||||
}
|
||||
|
||||
baz()
|
||||
if (bar != "test text") return "bar != \"test text\", bar = \"$bar\"";
|
||||
if (boo != 30) return "boo != 61, boo = $boo";
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user