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
@@ -0,0 +1,14 @@
import kotlin.*
fun box() : String {
val vector = java.util.Vector<Int>()
vector.add(1)
vector.add(2)
vector.add(3)
var sum = 0
for(e in vector.elements()) {
sum += e
}
return if(sum == 6) "OK" else "fail"
}