JS backend: removed the unnecessary main function from some tests.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user