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 {
|
public void testKt1665() throws Exception {
|
||||||
checkOutput("kt1665.kt", "a", "");
|
checkFooBoxIsOk();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testWhenWithoutExpression() throws Exception {
|
public void testWhenWithoutExpression() throws Exception {
|
||||||
|
|||||||
@@ -12,7 +12,3 @@ class A() {
|
|||||||
fun box(): Boolean {
|
fun box(): Boolean {
|
||||||
return A().p()
|
return A().p()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main(arg: Array<String>) {
|
|
||||||
println(box())
|
|
||||||
}
|
|
||||||
@@ -12,7 +12,3 @@ class A() {
|
|||||||
fun box(): Boolean {
|
fun box(): Boolean {
|
||||||
return A().p()
|
return A().p()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main(arg: Array<String>) {
|
|
||||||
println(box())
|
|
||||||
}
|
|
||||||
@@ -106,7 +106,3 @@ fun testReversedRange() : Boolean {
|
|||||||
|
|
||||||
return true;
|
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 a = 10
|
||||||
val b = 3
|
val b = 3
|
||||||
when {
|
when {
|
||||||
a > b -> println("a")
|
a > b -> return "OK"
|
||||||
b > a -> println("b")
|
b > a -> return "b"
|
||||||
else -> println("Unknown")
|
else -> return "else"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -13,7 +13,3 @@ fun box() : Boolean {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main() {
|
|
||||||
box()
|
|
||||||
}
|
|
||||||
@@ -35,7 +35,3 @@ fun box() : Boolean {
|
|||||||
return true
|
return true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun main() {
|
|
||||||
box()
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user