Change range iteration tests so they are runnable on all platforms
Remove JS and Native backend exclusions
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 5 downTo 10
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 10..5
|
||||
|
||||
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 8 downTo 3 step 2
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 3..8 step 2
|
||||
|
||||
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -1,26 +1,20 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 5 downTo 5
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 5..5
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 1 until 5
|
||||
|
||||
+2
-16
@@ -1,26 +1,12 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -1,26 +1,12 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+10
-16
@@ -1,26 +1,20 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = (5 downTo 3).reversed()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = (3 downTo 5).reversed()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = (5..3).reversed()
|
||||
|
||||
+1
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = (8 downTo 3 step 2).reversed()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = (3..5).reversed()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = (3..9 step 2).reversed()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 9 downTo 3
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 3..9
|
||||
|
||||
+1
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = (1 + 2)..(10 - 1)
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 9 downTo 3 step 2
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
val range1 = 3..9 step 2
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 5 downTo 10) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 10..5) {
|
||||
|
||||
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 8 downTo 3 step 2) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 3..8 step 2) {
|
||||
|
||||
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -1,26 +1,20 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 5 downTo 5) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 5..5) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 1 until 5) {
|
||||
|
||||
+2
-16
@@ -1,26 +1,12 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -1,26 +1,12 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+10
-16
@@ -1,26 +1,20 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MaxI = Int.MAX_VALUE
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MaxB = Byte.MAX_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MaxS = Short.MAX_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MaxL = Long.MAX_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MaxC = Char.MAX_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
+5
-16
@@ -1,26 +1,15 @@
|
||||
// TODO: muted automatically, investigate should it be ran for JS_IR or not
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS
|
||||
|
||||
// TODO: muted automatically, investigate should it be ran for NATIVE or not
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
// Auto-generated by org.jetbrains.kotlin.generators.tests.GenerateRangesCodegenTestData. DO NOT EDIT!
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
import java.lang.Integer.MAX_VALUE as MaxI
|
||||
import java.lang.Integer.MIN_VALUE as MinI
|
||||
import java.lang.Byte.MAX_VALUE as MaxB
|
||||
import java.lang.Byte.MIN_VALUE as MinB
|
||||
import java.lang.Short.MAX_VALUE as MaxS
|
||||
import java.lang.Short.MIN_VALUE as MinS
|
||||
import java.lang.Long.MAX_VALUE as MaxL
|
||||
import java.lang.Long.MIN_VALUE as MinL
|
||||
import java.lang.Character.MAX_VALUE as MaxC
|
||||
import java.lang.Character.MIN_VALUE as MinC
|
||||
const val MinI = Int.MIN_VALUE
|
||||
const val MinB = Byte.MIN_VALUE
|
||||
const val MinS = Short.MIN_VALUE
|
||||
const val MinL = Long.MIN_VALUE
|
||||
const val MinC = Char.MIN_VALUE
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in (5 downTo 3).reversed()) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in (3 downTo 5).reversed()) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in (5..3).reversed()) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in (8 downTo 3 step 2).reversed()) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in (3..5).reversed()) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in (3..9 step 2).reversed()) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 9 downTo 3) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 3..9) {
|
||||
|
||||
+1
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in (1 + 2)..(10 - 1)) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 9 downTo 3 step 2) {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
|
||||
|
||||
fun box(): String {
|
||||
val list1 = ArrayList<Int>()
|
||||
for (i in 3..9 step 2) {
|
||||
|
||||
+13
-38
@@ -37,7 +37,6 @@ public class GenerateRangesCodegenTestData {
|
||||
private static final File AS_EXPRESSION_DIR = new File(TEST_DATA_DIR, "expression");
|
||||
private static final File[] SOURCE_TEST_FILES = {
|
||||
new File("libraries/stdlib/test/ranges/RangeIterationTest.kt"),
|
||||
new File("libraries/stdlib/jvm/test/ranges/RangeIterationJVMTest.kt")
|
||||
};
|
||||
|
||||
private static final Pattern TEST_FUN_PATTERN = Pattern.compile("@Test fun (\\w+)\\(\\) \\{.+?}", Pattern.DOTALL);
|
||||
@@ -104,38 +103,11 @@ public class GenerateRangesCodegenTestData {
|
||||
.replace("\n", LineSeparator.getSystemLineSeparator().getSeparatorString());
|
||||
}
|
||||
|
||||
private static final List<String> INTEGER_PRIMITIVES = Arrays.asList("Integer", "Byte", "Short", "Long", "Character");
|
||||
private static final List<String> INTEGER_PRIMITIVES = Arrays.asList("Int", "Byte", "Short", "Long", "Char");
|
||||
|
||||
// TODO: Use common MIN_VALUE/MAX_VALUE constants and remove these exclusions
|
||||
private static final List<String> IGNORED_FOR_JS_BACKEND = Arrays.asList(
|
||||
"inexactDownToMinValue.kt",
|
||||
"inexactToMaxValue.kt",
|
||||
"maxValueMinusTwoToMaxValue.kt",
|
||||
"maxValueToMaxValue.kt",
|
||||
"maxValueToMinValue.kt",
|
||||
"progressionDownToMinValue.kt",
|
||||
"progressionMaxValueMinusTwoToMaxValue.kt",
|
||||
"progressionMaxValueToMaxValue.kt",
|
||||
"progressionMaxValueToMinValue.kt",
|
||||
"progressionMinValueToMinValue.kt",
|
||||
"overflowZeroToMinValue.kt",
|
||||
"overflowZeroDownToMaxValue.kt"
|
||||
);
|
||||
private static final List<String> IGNORED_FOR_JS_BACKEND = Collections.emptyList();
|
||||
|
||||
private static final List<String> IGNORED_FOR_NATIVE_BACKEND = Arrays.asList(
|
||||
"inexactDownToMinValue.kt",
|
||||
"inexactToMaxValue.kt",
|
||||
"maxValueMinusTwoToMaxValue.kt",
|
||||
"maxValueToMaxValue.kt",
|
||||
"maxValueToMinValue.kt",
|
||||
"progressionDownToMinValue.kt",
|
||||
"progressionMaxValueMinusTwoToMaxValue.kt",
|
||||
"progressionMaxValueToMaxValue.kt",
|
||||
"progressionMaxValueToMinValue.kt",
|
||||
"progressionMinValueToMinValue.kt",
|
||||
"overflowZeroToMinValue.kt",
|
||||
"overflowZeroDownToMaxValue.kt"
|
||||
);
|
||||
private static final List<String> IGNORED_FOR_NATIVE_BACKEND = Collections.emptyList();
|
||||
|
||||
private static void writeIgnoreBackendDirective(PrintWriter out, String backendName) {
|
||||
out.printf("// TODO: muted automatically, investigate should it be ran for %s or not%n", backendName);
|
||||
@@ -165,14 +137,17 @@ public class GenerateRangesCodegenTestData {
|
||||
out.println("// Auto-generated by " + GenerateRangesCodegenTestData.class.getName() + ". DO NOT EDIT!");
|
||||
out.println("// WITH_RUNTIME");
|
||||
out.println();
|
||||
if (generatedBody.contains("Max") || generatedBody.contains("Min")) {
|
||||
// Import min/max values, but only in case when the generated test case actually uses them (not to clutter tests which don't)
|
||||
out.println();
|
||||
for (String primitive : INTEGER_PRIMITIVES) {
|
||||
out.println("import java.lang." + primitive + ".MAX_VALUE as Max" + primitive.charAt(0));
|
||||
out.println("import java.lang." + primitive + ".MIN_VALUE as Min" + primitive.charAt(0));
|
||||
}
|
||||
// Import min/max values, but only in case when the generated test case actually uses them (not to clutter tests which don't)
|
||||
out.println();
|
||||
for (String primitive : INTEGER_PRIMITIVES) {
|
||||
String maxV = "Max" + primitive.charAt(0);
|
||||
String minV = "Min" + primitive.charAt(0);
|
||||
if (generatedBody.contains(maxV))
|
||||
out.printf("const val %s = %s.MAX_VALUE", maxV, primitive).println();
|
||||
if (generatedBody.contains(minV))
|
||||
out.printf("const val %s = %s.MIN_VALUE", minV, primitive).println();
|
||||
}
|
||||
|
||||
out.println();
|
||||
out.println("fun box(): String {");
|
||||
out.print(generatedBody);
|
||||
|
||||
Reference in New Issue
Block a user