JS: move expressions test to box tests

This commit is contained in:
Alexey Andreev
2016-08-26 19:32:17 +03:00
parent 2bf0199959
commit b159049be8
314 changed files with 2380 additions and 2185 deletions
@@ -0,0 +1,19 @@
package foo
// test String template must have one or more entries.
public class Fe {
fun open(method: String, url: String, async: Boolean = true, user: String = "", password: String = "") = "$method $url $async $user $password"
}
fun box(): String {
val a = "abc"
val b = "def"
val message = "a = $a, b = $b"
if (message != "a = abc, b = def") return "fail"
val v1 = null
if ("returns null null" != "returns $v1 ${null}") return "fail"
return if (Fe().open("22", "33") == "22 33 true ") "OK" else "fail"
}