KT-274 stdlib part and commented test. Still require frontend test
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import std.*
|
||||
|
||||
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"
|
||||
}
|
||||
@@ -80,4 +80,8 @@ public class StdlibTest extends CodegenTestCase {
|
||||
public void testKt864 () {
|
||||
blackBoxFile("regressions/kt864.jet");
|
||||
}
|
||||
|
||||
public void testKt274 () {
|
||||
// blackBoxFile("regressions/kt274.kt");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user