Codegen tests: move stdlib tests to boxWithStdlib

This commit is contained in:
Alexander Udalov
2013-02-07 20:43:13 +04:00
committed by Alexander Udalov
parent 83b93071d3
commit 8a605b3884
24 changed files with 10 additions and 103 deletions
@@ -24,4 +24,4 @@ class Item{
fun box() : String {
C().foo()
return "OK"
}
}
@@ -1,4 +1,4 @@
fun box() : String {
val i = 1
return if(i.javaClass.getSimpleName() == "int") "OK" else "fail"
}
}
@@ -15,4 +15,4 @@ fun box() : String {
k+=x
}
return if(k=="01234") "OK" else k
}
}
@@ -10,4 +10,4 @@ public class Test {
fun box() : String {
Test().f()
return "OK"
}
}
@@ -11,4 +11,4 @@ fun box() : String {
sum += e
}
return if(sum == 6) "OK" else "fail"
}
}
@@ -17,4 +17,4 @@ fun box(): String {
if (d.javaClass != javaClass<Double>()) return "javaClass function on double fails"
return "OK"
}
}
@@ -123,4 +123,4 @@ fun Reader.forEachChar(body : (Char) -> Unit) {
if (i == -1) break
body(i.toChar())
} while(true)
}
}
@@ -104,4 +104,4 @@ fun Reader.forEachChar(body : (Char) -> Unit) {
if (i == -1) break
body(i.toChar())
} while(true)
}
}
@@ -8,4 +8,4 @@ fun box(): String {
if(test.getCanonicalName() != "java.lang.String") return "fail"
if(test2.getCanonicalName() != "java.util.Iterator") return "fail"
return "OK"
}
}
@@ -9,4 +9,4 @@ fun box() : String {
a.add(1)
a.add(2)
return if((a.size == 2) && (a.get(1) == 2) && (a.get(0) == 1)) "OK" else "fail"
}
}