Removed downto cases from JS backend tests (to be restored, see KT-2586)
This commit is contained in:
@@ -49,11 +49,7 @@ public final class RangeTest extends SingleFileTranslationTest {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testIntDownTo() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
|
||||
public void testUpToDownToDoNotIterate() throws Exception {
|
||||
public void testUpToDoesNotIterate() throws Exception {
|
||||
fooBoxTest();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
package foo
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
fun box() : Boolean {
|
||||
var elems = ArrayList<Int>()
|
||||
for (i in 4 downto 0) {
|
||||
elems.add(i)
|
||||
}
|
||||
return elems[0] == 4 && elems[1] == 3 && elems[2] == 2 && elems[3] == 1 && elems[4] == 0
|
||||
}
|
||||
-3
@@ -6,8 +6,5 @@ fun box() : Boolean {
|
||||
for (i in 0 upto -1) {
|
||||
return false
|
||||
}
|
||||
for (i in 0 downto 1) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user