JS backend: testFiles -> testData

This commit is contained in:
Zalim Bashorov
2014-02-26 15:39:46 +04:00
parent bcd579acdd
commit 442215e829
490 changed files with 0 additions and 0 deletions
@@ -0,0 +1,14 @@
package foo
class Foo(val name: String) {
override public fun toString(): String {
return name + "S"
}
}
fun box(): String {
val a = Foo("abc")
val b = Foo("def")
val message = "a = $a, b = $b"
return message
}
@@ -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(): Boolean {
val a = "abc"
val b = "def"
val message = "a = $a, b = $b"
if (message != "a = abc, b = def") return false
val v1 = null
if ("returns null null" != "returns $v1 ${null}") return false
return Fe().open("22", "33") == "22 33 true "
}