JS backend: removed the unnecessary main function from some tests.

This commit is contained in:
Zalim Bashorov
2014-02-03 14:14:53 +04:00
parent 8dc9aecbf8
commit 77277ce197
7 changed files with 8 additions and 26 deletions
@@ -74,8 +74,8 @@ public final class PatternMatchingTest extends SingleFileTranslationTest {
}
}
public void testKT1665() throws Exception {
checkOutput("kt1665.kt", "a", "");
public void testKt1665() throws Exception {
checkFooBoxIsOk();
}
public void testWhenWithoutExpression() throws Exception {
@@ -12,7 +12,3 @@ class A() {
fun box(): Boolean {
return A().p()
}
fun main(arg: Array<String>) {
println(box())
}
@@ -12,7 +12,3 @@ class A() {
fun box(): Boolean {
return A().p()
}
fun main(arg: Array<String>) {
println(box())
}
@@ -106,7 +106,3 @@ fun testReversedRange() : Boolean {
return true;
}
fun main(args : Array<String>) {
println(box())
}
@@ -1,9 +1,11 @@
fun main(args : Array<String>) {
package foo
fun box(): String {
val a = 10
val b = 3
when {
a > b -> println("a")
b > a -> println("b")
else -> println("Unknown")
a > b -> return "OK"
b > a -> return "b"
else -> return "else"
}
}
@@ -13,7 +13,3 @@ fun box() : Boolean {
return true;
}
fun main() {
box()
}
@@ -35,7 +35,3 @@ fun box() : Boolean {
return true
}
fun main() {
box()
}