Renamed data -> testData in integration-tests.

This commit is contained in:
Evgeny Gerashchenko
2012-11-28 15:20:47 +04:00
parent b9b87d894a
commit 6aef746d30
16 changed files with 13 additions and 13 deletions
@@ -0,0 +1,8 @@
OUT Buildfile: build.xml
OUT
OUT build:
OUT [kotlinc] Compiling [[TestData]/hello.kt] => [[Temp]/hello.jar]
OUT
OUT BUILD SUCCESSFUL
OUT Total time: [time]
Return code: 0
@@ -0,0 +1,7 @@
<project name="Ant Task Test" default="build">
<taskdef resource="org/jetbrains/jet/buildtools/ant/antlib.xml" classpath="${kotlin.lib}/kotlin-ant.jar"/>
<target name="build">
<kotlinc src="${test.data}/hello.kt" output="${temp}/hello.jar"/>
</target>
</project>
@@ -0,0 +1,7 @@
package Hello
fun main(args : Array<String>) {
for (s in arrayList("a"))
println("Hello, $s!")
}
@@ -0,0 +1,2 @@
OUT Hello, a!
Return code: 0
@@ -0,0 +1,4 @@
OUT ERROR: [TestData]/hello.kt: (4, 5) Unresolved reference: a
OUT WARNING: [TestData]/hello.kt: (4, 5) The expression is unused
ERR exec() finished with COMPILATION_ERROR return code
Return code: 1
@@ -0,0 +1,5 @@
package Hello
fun main(args : Array<String>) {
a
}
@@ -0,0 +1 @@
Return code: 0
@@ -0,0 +1,5 @@
package Hello
fun main(args : Array<String>) {
System.out.println("Hello!")
}
@@ -0,0 +1,2 @@
OUT Hello!
Return code: 0
@@ -0,0 +1 @@
Return code: 0
@@ -0,0 +1,5 @@
package Smoke
fun main(args: Array<String>) {
print("${args[0]}|${args[1]}|${args[2]}")
}
@@ -0,0 +1,7 @@
import kotlin.modules.*
fun project() {
module("smoke") {
sources += "Smoke.kt"
}
}
@@ -0,0 +1,2 @@
OUT 1|2|3
Return code: 0
@@ -0,0 +1,3 @@
OUT ERROR: [TestData]/test.kt: (4, 20) Expecting an element
ERR exec() finished with COMPILATION_ERROR return code
Return code: 1
@@ -0,0 +1,5 @@
package test
fun test() {
val s = System.in
}