Add more tests for 'contains' in ranges #KT-52933
- ranges produced by 'rangeUntil' operator - ranges of unsigned values - more elements in ranges produced by `downTo`
This commit is contained in:
+119
-119
@@ -13,28 +13,28 @@ val range3 = emptyObjectArray.indices
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = (-1)
|
||||
val element3 = (-1).toLong()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0.toLong()
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1.toLong()
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2.toLong()
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3.toLong()
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4.toLong()
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
@@ -164,10 +164,10 @@ fun testR0xE1() {
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in intArray.indices != range0.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in intArray.indices != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in intArray.indices) != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in intArray.indices) != range0.contains((-1))) throw AssertionError()
|
||||
if (-1 in intArray.indices != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in intArray.indices != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in intArray.indices) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in intArray.indices) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in intArray.indices != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in intArray.indices != !range0.contains(element2)) throw AssertionError()
|
||||
@@ -177,10 +177,10 @@ fun testR0xE2() {
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in intArray.indices != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in intArray.indices != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in intArray.indices) != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in intArray.indices) != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in intArray.indices != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in intArray.indices != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in intArray.indices) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in intArray.indices) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in intArray.indices != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in intArray.indices != !range0.contains(element3)) throw AssertionError()
|
||||
@@ -229,10 +229,10 @@ fun testR0xE6() {
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in intArray.indices != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in intArray.indices != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in intArray.indices) != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in intArray.indices) != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in intArray.indices != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in intArray.indices != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in intArray.indices) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in intArray.indices) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in intArray.indices != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in intArray.indices != !range0.contains(element7)) throw AssertionError()
|
||||
@@ -281,10 +281,10 @@ fun testR0xE10() {
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in intArray.indices != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in intArray.indices != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in intArray.indices) != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in intArray.indices) != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in intArray.indices != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in intArray.indices != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in intArray.indices) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in intArray.indices) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in intArray.indices != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in intArray.indices != !range0.contains(element11)) throw AssertionError()
|
||||
@@ -333,10 +333,10 @@ fun testR0xE14() {
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in intArray.indices != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in intArray.indices != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in intArray.indices) != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in intArray.indices) != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in intArray.indices != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in intArray.indices != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in intArray.indices) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in intArray.indices) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in intArray.indices != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in intArray.indices != !range0.contains(element15)) throw AssertionError()
|
||||
@@ -385,10 +385,10 @@ fun testR0xE18() {
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in intArray.indices != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in intArray.indices != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in intArray.indices) != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in intArray.indices) != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in intArray.indices != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in intArray.indices != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in intArray.indices) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in intArray.indices) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in intArray.indices != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in intArray.indices != !range0.contains(element19)) throw AssertionError()
|
||||
@@ -437,10 +437,10 @@ fun testR0xE22() {
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in intArray.indices != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in intArray.indices != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in intArray.indices) != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in intArray.indices) != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in intArray.indices != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in intArray.indices != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in intArray.indices) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in intArray.indices) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in intArray.indices != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in intArray.indices != !range0.contains(element23)) throw AssertionError()
|
||||
@@ -476,10 +476,10 @@ fun testR1xE1() {
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in objectArray.indices != range1.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in objectArray.indices != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in objectArray.indices) != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in objectArray.indices) != range1.contains((-1))) throw AssertionError()
|
||||
if (-1 in objectArray.indices != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in objectArray.indices != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in objectArray.indices) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in objectArray.indices) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in objectArray.indices != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in objectArray.indices != !range1.contains(element2)) throw AssertionError()
|
||||
@@ -489,10 +489,10 @@ fun testR1xE2() {
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in objectArray.indices != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in objectArray.indices != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in objectArray.indices) != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in objectArray.indices) != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in objectArray.indices != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in objectArray.indices != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in objectArray.indices) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in objectArray.indices) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in objectArray.indices != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in objectArray.indices != !range1.contains(element3)) throw AssertionError()
|
||||
@@ -541,10 +541,10 @@ fun testR1xE6() {
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in objectArray.indices != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in objectArray.indices != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in objectArray.indices) != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in objectArray.indices) != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in objectArray.indices != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in objectArray.indices != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in objectArray.indices) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in objectArray.indices) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in objectArray.indices != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in objectArray.indices != !range1.contains(element7)) throw AssertionError()
|
||||
@@ -593,10 +593,10 @@ fun testR1xE10() {
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in objectArray.indices != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in objectArray.indices != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in objectArray.indices) != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in objectArray.indices) != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in objectArray.indices != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in objectArray.indices != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in objectArray.indices) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in objectArray.indices) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in objectArray.indices != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in objectArray.indices != !range1.contains(element11)) throw AssertionError()
|
||||
@@ -645,10 +645,10 @@ fun testR1xE14() {
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in objectArray.indices != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in objectArray.indices != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in objectArray.indices) != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in objectArray.indices) != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in objectArray.indices != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in objectArray.indices != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in objectArray.indices) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in objectArray.indices) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in objectArray.indices != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in objectArray.indices != !range1.contains(element15)) throw AssertionError()
|
||||
@@ -697,10 +697,10 @@ fun testR1xE18() {
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in objectArray.indices != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in objectArray.indices != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in objectArray.indices) != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in objectArray.indices) != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in objectArray.indices != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in objectArray.indices != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in objectArray.indices) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in objectArray.indices) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in objectArray.indices != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in objectArray.indices != !range1.contains(element19)) throw AssertionError()
|
||||
@@ -749,10 +749,10 @@ fun testR1xE22() {
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in objectArray.indices != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in objectArray.indices != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in objectArray.indices) != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in objectArray.indices) != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in objectArray.indices != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in objectArray.indices != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in objectArray.indices) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in objectArray.indices) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in objectArray.indices != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in objectArray.indices != !range1.contains(element23)) throw AssertionError()
|
||||
@@ -788,10 +788,10 @@ fun testR2xE1() {
|
||||
|
||||
fun testR2xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in emptyIntArray.indices != range2.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in emptyIntArray.indices != !range2.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in emptyIntArray.indices) != !range2.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in emptyIntArray.indices) != range2.contains((-1))) throw AssertionError()
|
||||
if (-1 in emptyIntArray.indices != range2.contains(-1)) throw AssertionError()
|
||||
if (-1 !in emptyIntArray.indices != !range2.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in emptyIntArray.indices) != !range2.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in emptyIntArray.indices) != range2.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in emptyIntArray.indices != range2.contains(element2)) throw AssertionError()
|
||||
if (element2 !in emptyIntArray.indices != !range2.contains(element2)) throw AssertionError()
|
||||
@@ -801,10 +801,10 @@ fun testR2xE2() {
|
||||
|
||||
fun testR2xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in emptyIntArray.indices != range2.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in emptyIntArray.indices != !range2.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in emptyIntArray.indices) != !range2.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in emptyIntArray.indices) != range2.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in emptyIntArray.indices != range2.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in emptyIntArray.indices != !range2.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in emptyIntArray.indices) != !range2.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in emptyIntArray.indices) != range2.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in emptyIntArray.indices != range2.contains(element3)) throw AssertionError()
|
||||
if (element3 !in emptyIntArray.indices != !range2.contains(element3)) throw AssertionError()
|
||||
@@ -853,10 +853,10 @@ fun testR2xE6() {
|
||||
|
||||
fun testR2xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in emptyIntArray.indices != range2.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in emptyIntArray.indices != !range2.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in emptyIntArray.indices) != !range2.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in emptyIntArray.indices) != range2.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in emptyIntArray.indices != range2.contains(0L)) throw AssertionError()
|
||||
if (0L !in emptyIntArray.indices != !range2.contains(0L)) throw AssertionError()
|
||||
if (!(0L in emptyIntArray.indices) != !range2.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in emptyIntArray.indices) != range2.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in emptyIntArray.indices != range2.contains(element7)) throw AssertionError()
|
||||
if (element7 !in emptyIntArray.indices != !range2.contains(element7)) throw AssertionError()
|
||||
@@ -905,10 +905,10 @@ fun testR2xE10() {
|
||||
|
||||
fun testR2xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in emptyIntArray.indices != range2.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in emptyIntArray.indices != !range2.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in emptyIntArray.indices) != !range2.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in emptyIntArray.indices) != range2.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in emptyIntArray.indices != range2.contains(1L)) throw AssertionError()
|
||||
if (1L !in emptyIntArray.indices != !range2.contains(1L)) throw AssertionError()
|
||||
if (!(1L in emptyIntArray.indices) != !range2.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in emptyIntArray.indices) != range2.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in emptyIntArray.indices != range2.contains(element11)) throw AssertionError()
|
||||
if (element11 !in emptyIntArray.indices != !range2.contains(element11)) throw AssertionError()
|
||||
@@ -957,10 +957,10 @@ fun testR2xE14() {
|
||||
|
||||
fun testR2xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in emptyIntArray.indices != range2.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in emptyIntArray.indices != !range2.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in emptyIntArray.indices) != !range2.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in emptyIntArray.indices) != range2.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in emptyIntArray.indices != range2.contains(2L)) throw AssertionError()
|
||||
if (2L !in emptyIntArray.indices != !range2.contains(2L)) throw AssertionError()
|
||||
if (!(2L in emptyIntArray.indices) != !range2.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in emptyIntArray.indices) != range2.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in emptyIntArray.indices != range2.contains(element15)) throw AssertionError()
|
||||
if (element15 !in emptyIntArray.indices != !range2.contains(element15)) throw AssertionError()
|
||||
@@ -1009,10 +1009,10 @@ fun testR2xE18() {
|
||||
|
||||
fun testR2xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in emptyIntArray.indices != range2.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in emptyIntArray.indices != !range2.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in emptyIntArray.indices) != !range2.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in emptyIntArray.indices) != range2.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in emptyIntArray.indices != range2.contains(3L)) throw AssertionError()
|
||||
if (3L !in emptyIntArray.indices != !range2.contains(3L)) throw AssertionError()
|
||||
if (!(3L in emptyIntArray.indices) != !range2.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in emptyIntArray.indices) != range2.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in emptyIntArray.indices != range2.contains(element19)) throw AssertionError()
|
||||
if (element19 !in emptyIntArray.indices != !range2.contains(element19)) throw AssertionError()
|
||||
@@ -1061,10 +1061,10 @@ fun testR2xE22() {
|
||||
|
||||
fun testR2xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in emptyIntArray.indices != range2.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in emptyIntArray.indices != !range2.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in emptyIntArray.indices) != !range2.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in emptyIntArray.indices) != range2.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in emptyIntArray.indices != range2.contains(4L)) throw AssertionError()
|
||||
if (4L !in emptyIntArray.indices != !range2.contains(4L)) throw AssertionError()
|
||||
if (!(4L in emptyIntArray.indices) != !range2.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in emptyIntArray.indices) != range2.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in emptyIntArray.indices != range2.contains(element23)) throw AssertionError()
|
||||
if (element23 !in emptyIntArray.indices != !range2.contains(element23)) throw AssertionError()
|
||||
@@ -1100,10 +1100,10 @@ fun testR3xE1() {
|
||||
|
||||
fun testR3xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in emptyObjectArray.indices != range3.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in emptyObjectArray.indices != !range3.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in emptyObjectArray.indices) != !range3.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in emptyObjectArray.indices) != range3.contains((-1))) throw AssertionError()
|
||||
if (-1 in emptyObjectArray.indices != range3.contains(-1)) throw AssertionError()
|
||||
if (-1 !in emptyObjectArray.indices != !range3.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in emptyObjectArray.indices) != !range3.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in emptyObjectArray.indices) != range3.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in emptyObjectArray.indices != range3.contains(element2)) throw AssertionError()
|
||||
if (element2 !in emptyObjectArray.indices != !range3.contains(element2)) throw AssertionError()
|
||||
@@ -1113,10 +1113,10 @@ fun testR3xE2() {
|
||||
|
||||
fun testR3xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in emptyObjectArray.indices != range3.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in emptyObjectArray.indices != !range3.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in emptyObjectArray.indices) != !range3.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in emptyObjectArray.indices) != range3.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in emptyObjectArray.indices != range3.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in emptyObjectArray.indices != !range3.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in emptyObjectArray.indices) != !range3.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in emptyObjectArray.indices) != range3.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in emptyObjectArray.indices != range3.contains(element3)) throw AssertionError()
|
||||
if (element3 !in emptyObjectArray.indices != !range3.contains(element3)) throw AssertionError()
|
||||
@@ -1165,10 +1165,10 @@ fun testR3xE6() {
|
||||
|
||||
fun testR3xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in emptyObjectArray.indices != range3.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in emptyObjectArray.indices != !range3.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in emptyObjectArray.indices) != !range3.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in emptyObjectArray.indices) != range3.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in emptyObjectArray.indices != range3.contains(0L)) throw AssertionError()
|
||||
if (0L !in emptyObjectArray.indices != !range3.contains(0L)) throw AssertionError()
|
||||
if (!(0L in emptyObjectArray.indices) != !range3.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in emptyObjectArray.indices) != range3.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in emptyObjectArray.indices != range3.contains(element7)) throw AssertionError()
|
||||
if (element7 !in emptyObjectArray.indices != !range3.contains(element7)) throw AssertionError()
|
||||
@@ -1217,10 +1217,10 @@ fun testR3xE10() {
|
||||
|
||||
fun testR3xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in emptyObjectArray.indices != range3.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in emptyObjectArray.indices != !range3.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in emptyObjectArray.indices) != !range3.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in emptyObjectArray.indices) != range3.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in emptyObjectArray.indices != range3.contains(1L)) throw AssertionError()
|
||||
if (1L !in emptyObjectArray.indices != !range3.contains(1L)) throw AssertionError()
|
||||
if (!(1L in emptyObjectArray.indices) != !range3.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in emptyObjectArray.indices) != range3.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in emptyObjectArray.indices != range3.contains(element11)) throw AssertionError()
|
||||
if (element11 !in emptyObjectArray.indices != !range3.contains(element11)) throw AssertionError()
|
||||
@@ -1269,10 +1269,10 @@ fun testR3xE14() {
|
||||
|
||||
fun testR3xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in emptyObjectArray.indices != range3.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in emptyObjectArray.indices != !range3.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in emptyObjectArray.indices) != !range3.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in emptyObjectArray.indices) != range3.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in emptyObjectArray.indices != range3.contains(2L)) throw AssertionError()
|
||||
if (2L !in emptyObjectArray.indices != !range3.contains(2L)) throw AssertionError()
|
||||
if (!(2L in emptyObjectArray.indices) != !range3.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in emptyObjectArray.indices) != range3.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in emptyObjectArray.indices != range3.contains(element15)) throw AssertionError()
|
||||
if (element15 !in emptyObjectArray.indices != !range3.contains(element15)) throw AssertionError()
|
||||
@@ -1321,10 +1321,10 @@ fun testR3xE18() {
|
||||
|
||||
fun testR3xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in emptyObjectArray.indices != range3.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in emptyObjectArray.indices != !range3.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in emptyObjectArray.indices) != !range3.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in emptyObjectArray.indices) != range3.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in emptyObjectArray.indices != range3.contains(3L)) throw AssertionError()
|
||||
if (3L !in emptyObjectArray.indices != !range3.contains(3L)) throw AssertionError()
|
||||
if (!(3L in emptyObjectArray.indices) != !range3.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in emptyObjectArray.indices) != range3.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in emptyObjectArray.indices != range3.contains(element19)) throw AssertionError()
|
||||
if (element19 !in emptyObjectArray.indices != !range3.contains(element19)) throw AssertionError()
|
||||
@@ -1373,10 +1373,10 @@ fun testR3xE22() {
|
||||
|
||||
fun testR3xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in emptyObjectArray.indices != range3.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in emptyObjectArray.indices != !range3.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in emptyObjectArray.indices) != !range3.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in emptyObjectArray.indices) != range3.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in emptyObjectArray.indices != range3.contains(4L)) throw AssertionError()
|
||||
if (4L !in emptyObjectArray.indices != !range3.contains(4L)) throw AssertionError()
|
||||
if (!(4L in emptyObjectArray.indices) != !range3.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in emptyObjectArray.indices) != range3.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in emptyObjectArray.indices != range3.contains(element23)) throw AssertionError()
|
||||
if (element23 !in emptyObjectArray.indices != !range3.contains(element23)) throw AssertionError()
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
|
||||
|
||||
val range0 = '3' downTo '1'
|
||||
val range1 = '1' downTo '3'
|
||||
val range0 = '1' downTo '3'
|
||||
val range1 = '3' downTo '1'
|
||||
|
||||
val element0 = '0'
|
||||
val element1 = '1'
|
||||
@@ -28,132 +28,132 @@ fun box(): String {
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ('0' in '3' downTo '1' != range0.contains('0')) throw AssertionError()
|
||||
if ('0' !in '3' downTo '1' != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' in '3' downTo '1') != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '3' downTo '1') != range0.contains('0')) throw AssertionError()
|
||||
if ('0' in '1' downTo '3' != range0.contains('0')) throw AssertionError()
|
||||
if ('0' !in '1' downTo '3' != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' in '1' downTo '3') != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '1' downTo '3') != range0.contains('0')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in '3' downTo '1' != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '3' downTo '1' != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '3' downTo '1') != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '3' downTo '1') != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 in '1' downTo '3' != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '1' downTo '3' != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '1' downTo '3') != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '1' downTo '3') != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ('1' in '3' downTo '1' != range0.contains('1')) throw AssertionError()
|
||||
if ('1' !in '3' downTo '1' != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' in '3' downTo '1') != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '3' downTo '1') != range0.contains('1')) throw AssertionError()
|
||||
if ('1' in '1' downTo '3' != range0.contains('1')) throw AssertionError()
|
||||
if ('1' !in '1' downTo '3' != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' in '1' downTo '3') != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '1' downTo '3') != range0.contains('1')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in '3' downTo '1' != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '3' downTo '1' != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '3' downTo '1') != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '3' downTo '1') != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 in '1' downTo '3' != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '1' downTo '3' != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '1' downTo '3') != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '1' downTo '3') != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ('2' in '3' downTo '1' != range0.contains('2')) throw AssertionError()
|
||||
if ('2' !in '3' downTo '1' != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' in '3' downTo '1') != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '3' downTo '1') != range0.contains('2')) throw AssertionError()
|
||||
if ('2' in '1' downTo '3' != range0.contains('2')) throw AssertionError()
|
||||
if ('2' !in '1' downTo '3' != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' in '1' downTo '3') != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '1' downTo '3') != range0.contains('2')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in '3' downTo '1' != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '3' downTo '1' != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '3' downTo '1') != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '3' downTo '1') != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 in '1' downTo '3' != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '1' downTo '3' != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '1' downTo '3') != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '1' downTo '3') != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ('3' in '3' downTo '1' != range0.contains('3')) throw AssertionError()
|
||||
if ('3' !in '3' downTo '1' != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' in '3' downTo '1') != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '3' downTo '1') != range0.contains('3')) throw AssertionError()
|
||||
if ('3' in '1' downTo '3' != range0.contains('3')) throw AssertionError()
|
||||
if ('3' !in '1' downTo '3' != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' in '1' downTo '3') != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '1' downTo '3') != range0.contains('3')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in '3' downTo '1' != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '3' downTo '1' != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '3' downTo '1') != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '3' downTo '1') != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 in '1' downTo '3' != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '1' downTo '3' != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '1' downTo '3') != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '1' downTo '3') != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if ('4' in '3' downTo '1' != range0.contains('4')) throw AssertionError()
|
||||
if ('4' !in '3' downTo '1' != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' in '3' downTo '1') != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '3' downTo '1') != range0.contains('4')) throw AssertionError()
|
||||
if ('4' in '1' downTo '3' != range0.contains('4')) throw AssertionError()
|
||||
if ('4' !in '1' downTo '3' != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' in '1' downTo '3') != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '1' downTo '3') != range0.contains('4')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in '3' downTo '1' != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '3' downTo '1' != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '3' downTo '1') != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '3' downTo '1') != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 in '1' downTo '3' != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '1' downTo '3' != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '1' downTo '3') != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '1' downTo '3') != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ('0' in '1' downTo '3' != range1.contains('0')) throw AssertionError()
|
||||
if ('0' !in '1' downTo '3' != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' in '1' downTo '3') != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '1' downTo '3') != range1.contains('0')) throw AssertionError()
|
||||
if ('0' in '3' downTo '1' != range1.contains('0')) throw AssertionError()
|
||||
if ('0' !in '3' downTo '1' != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' in '3' downTo '1') != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '3' downTo '1') != range1.contains('0')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in '1' downTo '3' != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '1' downTo '3' != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '1' downTo '3') != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '1' downTo '3') != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 in '3' downTo '1' != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '3' downTo '1' != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '3' downTo '1') != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '3' downTo '1') != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ('1' in '1' downTo '3' != range1.contains('1')) throw AssertionError()
|
||||
if ('1' !in '1' downTo '3' != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' in '1' downTo '3') != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '1' downTo '3') != range1.contains('1')) throw AssertionError()
|
||||
if ('1' in '3' downTo '1' != range1.contains('1')) throw AssertionError()
|
||||
if ('1' !in '3' downTo '1' != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' in '3' downTo '1') != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '3' downTo '1') != range1.contains('1')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in '1' downTo '3' != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '1' downTo '3' != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '1' downTo '3') != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '1' downTo '3') != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 in '3' downTo '1' != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '3' downTo '1' != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '3' downTo '1') != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '3' downTo '1') != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ('2' in '1' downTo '3' != range1.contains('2')) throw AssertionError()
|
||||
if ('2' !in '1' downTo '3' != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' in '1' downTo '3') != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '1' downTo '3') != range1.contains('2')) throw AssertionError()
|
||||
if ('2' in '3' downTo '1' != range1.contains('2')) throw AssertionError()
|
||||
if ('2' !in '3' downTo '1' != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' in '3' downTo '1') != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '3' downTo '1') != range1.contains('2')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in '1' downTo '3' != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '1' downTo '3' != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '1' downTo '3') != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '1' downTo '3') != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 in '3' downTo '1' != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '3' downTo '1' != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '3' downTo '1') != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '3' downTo '1') != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ('3' in '1' downTo '3' != range1.contains('3')) throw AssertionError()
|
||||
if ('3' !in '1' downTo '3' != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' in '1' downTo '3') != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '1' downTo '3') != range1.contains('3')) throw AssertionError()
|
||||
if ('3' in '3' downTo '1' != range1.contains('3')) throw AssertionError()
|
||||
if ('3' !in '3' downTo '1' != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' in '3' downTo '1') != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '3' downTo '1') != range1.contains('3')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in '1' downTo '3' != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '1' downTo '3' != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '1' downTo '3') != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '1' downTo '3') != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 in '3' downTo '1' != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '3' downTo '1' != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '3' downTo '1') != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '3' downTo '1') != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if ('4' in '1' downTo '3' != range1.contains('4')) throw AssertionError()
|
||||
if ('4' !in '1' downTo '3' != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' in '1' downTo '3') != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '1' downTo '3') != range1.contains('4')) throw AssertionError()
|
||||
if ('4' in '3' downTo '1' != range1.contains('4')) throw AssertionError()
|
||||
if ('4' !in '3' downTo '1' != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' in '3' downTo '1') != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '3' downTo '1') != range1.contains('4')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in '1' downTo '3' != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '1' downTo '3' != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '1' downTo '3') != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '1' downTo '3') != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 in '3' downTo '1' != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '3' downTo '1' != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '3' downTo '1') != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '3' downTo '1') != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,159 +0,0 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = '1' .. '3'
|
||||
val range1 = '3' .. '1'
|
||||
|
||||
val element0 = '0'
|
||||
val element1 = '1'
|
||||
val element2 = '2'
|
||||
val element3 = '3'
|
||||
val element4 = '4'
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ('0' in '1' .. '3' != range0.contains('0')) throw AssertionError()
|
||||
if ('0' !in '1' .. '3' != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' in '1' .. '3') != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '1' .. '3') != range0.contains('0')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in '1' .. '3' != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '1' .. '3' != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '1' .. '3') != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '1' .. '3') != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ('1' in '1' .. '3' != range0.contains('1')) throw AssertionError()
|
||||
if ('1' !in '1' .. '3' != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' in '1' .. '3') != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '1' .. '3') != range0.contains('1')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in '1' .. '3' != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '1' .. '3' != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '1' .. '3') != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '1' .. '3') != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ('2' in '1' .. '3' != range0.contains('2')) throw AssertionError()
|
||||
if ('2' !in '1' .. '3' != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' in '1' .. '3') != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '1' .. '3') != range0.contains('2')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in '1' .. '3' != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '1' .. '3' != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '1' .. '3') != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '1' .. '3') != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ('3' in '1' .. '3' != range0.contains('3')) throw AssertionError()
|
||||
if ('3' !in '1' .. '3' != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' in '1' .. '3') != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '1' .. '3') != range0.contains('3')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in '1' .. '3' != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '1' .. '3' != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '1' .. '3') != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '1' .. '3') != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if ('4' in '1' .. '3' != range0.contains('4')) throw AssertionError()
|
||||
if ('4' !in '1' .. '3' != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' in '1' .. '3') != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '1' .. '3') != range0.contains('4')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in '1' .. '3' != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '1' .. '3' != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '1' .. '3') != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '1' .. '3') != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ('0' in '3' .. '1' != range1.contains('0')) throw AssertionError()
|
||||
if ('0' !in '3' .. '1' != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' in '3' .. '1') != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '3' .. '1') != range1.contains('0')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in '3' .. '1' != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '3' .. '1' != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '3' .. '1') != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '3' .. '1') != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ('1' in '3' .. '1' != range1.contains('1')) throw AssertionError()
|
||||
if ('1' !in '3' .. '1' != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' in '3' .. '1') != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '3' .. '1') != range1.contains('1')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in '3' .. '1' != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '3' .. '1' != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '3' .. '1') != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '3' .. '1') != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ('2' in '3' .. '1' != range1.contains('2')) throw AssertionError()
|
||||
if ('2' !in '3' .. '1' != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' in '3' .. '1') != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '3' .. '1') != range1.contains('2')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in '3' .. '1' != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '3' .. '1' != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '3' .. '1') != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '3' .. '1') != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ('3' in '3' .. '1' != range1.contains('3')) throw AssertionError()
|
||||
if ('3' !in '3' .. '1' != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' in '3' .. '1') != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '3' .. '1') != range1.contains('3')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in '3' .. '1' != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '3' .. '1' != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '3' .. '1') != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '3' .. '1') != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if ('4' in '3' .. '1' != range1.contains('4')) throw AssertionError()
|
||||
if ('4' !in '3' .. '1' != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' in '3' .. '1') != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '3' .. '1') != range1.contains('4')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in '3' .. '1' != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '3' .. '1' != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '3' .. '1') != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '3' .. '1') != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = '1'..'3'
|
||||
val range1 = '3'..'1'
|
||||
|
||||
val element0 = '0'
|
||||
val element1 = '1'
|
||||
val element2 = '2'
|
||||
val element3 = '3'
|
||||
val element4 = '4'
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ('0' in '1'..'3' != range0.contains('0')) throw AssertionError()
|
||||
if ('0' !in '1'..'3' != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' in '1'..'3') != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '1'..'3') != range0.contains('0')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in '1'..'3' != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '1'..'3' != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '1'..'3') != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '1'..'3') != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ('1' in '1'..'3' != range0.contains('1')) throw AssertionError()
|
||||
if ('1' !in '1'..'3' != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' in '1'..'3') != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '1'..'3') != range0.contains('1')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in '1'..'3' != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '1'..'3' != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '1'..'3') != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '1'..'3') != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ('2' in '1'..'3' != range0.contains('2')) throw AssertionError()
|
||||
if ('2' !in '1'..'3' != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' in '1'..'3') != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '1'..'3') != range0.contains('2')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in '1'..'3' != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '1'..'3' != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '1'..'3') != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '1'..'3') != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ('3' in '1'..'3' != range0.contains('3')) throw AssertionError()
|
||||
if ('3' !in '1'..'3' != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' in '1'..'3') != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '1'..'3') != range0.contains('3')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in '1'..'3' != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '1'..'3' != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '1'..'3') != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '1'..'3') != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if ('4' in '1'..'3' != range0.contains('4')) throw AssertionError()
|
||||
if ('4' !in '1'..'3' != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' in '1'..'3') != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '1'..'3') != range0.contains('4')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in '1'..'3' != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '1'..'3' != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '1'..'3') != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '1'..'3') != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ('0' in '3'..'1' != range1.contains('0')) throw AssertionError()
|
||||
if ('0' !in '3'..'1' != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' in '3'..'1') != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '3'..'1') != range1.contains('0')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in '3'..'1' != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '3'..'1' != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '3'..'1') != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '3'..'1') != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ('1' in '3'..'1' != range1.contains('1')) throw AssertionError()
|
||||
if ('1' !in '3'..'1' != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' in '3'..'1') != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '3'..'1') != range1.contains('1')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in '3'..'1' != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '3'..'1' != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '3'..'1') != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '3'..'1') != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ('2' in '3'..'1' != range1.contains('2')) throw AssertionError()
|
||||
if ('2' !in '3'..'1' != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' in '3'..'1') != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '3'..'1') != range1.contains('2')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in '3'..'1' != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '3'..'1' != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '3'..'1') != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '3'..'1') != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ('3' in '3'..'1' != range1.contains('3')) throw AssertionError()
|
||||
if ('3' !in '3'..'1' != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' in '3'..'1') != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '3'..'1') != range1.contains('3')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in '3'..'1' != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '3'..'1' != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '3'..'1') != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '3'..'1') != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if ('4' in '3'..'1' != range1.contains('4')) throw AssertionError()
|
||||
if ('4' !in '3'..'1' != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' in '3'..'1') != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '3'..'1') != range1.contains('4')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in '3'..'1' != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '3'..'1' != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '3'..'1') != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '3'..'1') != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||
// !LANGUAGE: +RangeUntilOperator
|
||||
@file:OptIn(ExperimentalStdlibApi::class)
|
||||
|
||||
|
||||
|
||||
val range0 = '1'..<'3'
|
||||
val range1 = '3'..<'1'
|
||||
|
||||
val element0 = '0'
|
||||
val element1 = '1'
|
||||
val element2 = '2'
|
||||
val element3 = '3'
|
||||
val element4 = '4'
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ('0' in '1'..<'3' != range0.contains('0')) throw AssertionError()
|
||||
if ('0' !in '1'..<'3' != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' in '1'..<'3') != !range0.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '1'..<'3') != range0.contains('0')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in '1'..<'3' != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '1'..<'3' != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '1'..<'3') != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '1'..<'3') != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ('1' in '1'..<'3' != range0.contains('1')) throw AssertionError()
|
||||
if ('1' !in '1'..<'3' != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' in '1'..<'3') != !range0.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '1'..<'3') != range0.contains('1')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in '1'..<'3' != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '1'..<'3' != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '1'..<'3') != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '1'..<'3') != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ('2' in '1'..<'3' != range0.contains('2')) throw AssertionError()
|
||||
if ('2' !in '1'..<'3' != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' in '1'..<'3') != !range0.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '1'..<'3') != range0.contains('2')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in '1'..<'3' != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '1'..<'3' != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '1'..<'3') != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '1'..<'3') != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ('3' in '1'..<'3' != range0.contains('3')) throw AssertionError()
|
||||
if ('3' !in '1'..<'3' != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' in '1'..<'3') != !range0.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '1'..<'3') != range0.contains('3')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in '1'..<'3' != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '1'..<'3' != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '1'..<'3') != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '1'..<'3') != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if ('4' in '1'..<'3' != range0.contains('4')) throw AssertionError()
|
||||
if ('4' !in '1'..<'3' != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' in '1'..<'3') != !range0.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '1'..<'3') != range0.contains('4')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in '1'..<'3' != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '1'..<'3' != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '1'..<'3') != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '1'..<'3') != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ('0' in '3'..<'1' != range1.contains('0')) throw AssertionError()
|
||||
if ('0' !in '3'..<'1' != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' in '3'..<'1') != !range1.contains('0')) throw AssertionError()
|
||||
if (!('0' !in '3'..<'1') != range1.contains('0')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in '3'..<'1' != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in '3'..<'1' != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in '3'..<'1') != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in '3'..<'1') != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ('1' in '3'..<'1' != range1.contains('1')) throw AssertionError()
|
||||
if ('1' !in '3'..<'1' != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' in '3'..<'1') != !range1.contains('1')) throw AssertionError()
|
||||
if (!('1' !in '3'..<'1') != range1.contains('1')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in '3'..<'1' != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in '3'..<'1' != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in '3'..<'1') != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in '3'..<'1') != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ('2' in '3'..<'1' != range1.contains('2')) throw AssertionError()
|
||||
if ('2' !in '3'..<'1' != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' in '3'..<'1') != !range1.contains('2')) throw AssertionError()
|
||||
if (!('2' !in '3'..<'1') != range1.contains('2')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in '3'..<'1' != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in '3'..<'1' != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in '3'..<'1') != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in '3'..<'1') != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ('3' in '3'..<'1' != range1.contains('3')) throw AssertionError()
|
||||
if ('3' !in '3'..<'1' != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' in '3'..<'1') != !range1.contains('3')) throw AssertionError()
|
||||
if (!('3' !in '3'..<'1') != range1.contains('3')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in '3'..<'1' != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in '3'..<'1' != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in '3'..<'1') != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in '3'..<'1') != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if ('4' in '3'..<'1' != range1.contains('4')) throw AssertionError()
|
||||
if ('4' !in '3'..<'1' != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' in '3'..<'1') != !range1.contains('4')) throw AssertionError()
|
||||
if (!('4' !in '3'..<'1') != range1.contains('4')) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in '3'..<'1' != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in '3'..<'1' != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in '3'..<'1') != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in '3'..<'1') != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
+63
-63
@@ -9,28 +9,28 @@ val range1 = emptyCharSequence.indices
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = (-1)
|
||||
val element3 = (-1).toLong()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0.toLong()
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1.toLong()
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2.toLong()
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3.toLong()
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4.toLong()
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
@@ -112,10 +112,10 @@ fun testR0xE1() {
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in charSequence.indices != range0.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in charSequence.indices != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in charSequence.indices) != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in charSequence.indices) != range0.contains((-1))) throw AssertionError()
|
||||
if (-1 in charSequence.indices != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in charSequence.indices != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in charSequence.indices) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in charSequence.indices) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in charSequence.indices != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in charSequence.indices != !range0.contains(element2)) throw AssertionError()
|
||||
@@ -125,10 +125,10 @@ fun testR0xE2() {
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in charSequence.indices != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in charSequence.indices != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in charSequence.indices) != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in charSequence.indices) != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in charSequence.indices != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in charSequence.indices != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in charSequence.indices) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in charSequence.indices) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in charSequence.indices != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in charSequence.indices != !range0.contains(element3)) throw AssertionError()
|
||||
@@ -177,10 +177,10 @@ fun testR0xE6() {
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in charSequence.indices != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in charSequence.indices != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in charSequence.indices) != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in charSequence.indices) != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in charSequence.indices != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in charSequence.indices != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in charSequence.indices) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in charSequence.indices) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in charSequence.indices != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in charSequence.indices != !range0.contains(element7)) throw AssertionError()
|
||||
@@ -229,10 +229,10 @@ fun testR0xE10() {
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in charSequence.indices != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in charSequence.indices != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in charSequence.indices) != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in charSequence.indices) != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in charSequence.indices != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in charSequence.indices != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in charSequence.indices) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in charSequence.indices) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in charSequence.indices != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in charSequence.indices != !range0.contains(element11)) throw AssertionError()
|
||||
@@ -281,10 +281,10 @@ fun testR0xE14() {
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in charSequence.indices != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in charSequence.indices != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in charSequence.indices) != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in charSequence.indices) != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in charSequence.indices != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in charSequence.indices != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in charSequence.indices) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in charSequence.indices) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in charSequence.indices != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in charSequence.indices != !range0.contains(element15)) throw AssertionError()
|
||||
@@ -333,10 +333,10 @@ fun testR0xE18() {
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in charSequence.indices != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in charSequence.indices != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in charSequence.indices) != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in charSequence.indices) != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in charSequence.indices != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in charSequence.indices != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in charSequence.indices) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in charSequence.indices) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in charSequence.indices != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in charSequence.indices != !range0.contains(element19)) throw AssertionError()
|
||||
@@ -385,10 +385,10 @@ fun testR0xE22() {
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in charSequence.indices != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in charSequence.indices != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in charSequence.indices) != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in charSequence.indices) != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in charSequence.indices != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in charSequence.indices != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in charSequence.indices) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in charSequence.indices) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in charSequence.indices != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in charSequence.indices != !range0.contains(element23)) throw AssertionError()
|
||||
@@ -424,10 +424,10 @@ fun testR1xE1() {
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in emptyCharSequence.indices != range1.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in emptyCharSequence.indices != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in emptyCharSequence.indices) != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in emptyCharSequence.indices) != range1.contains((-1))) throw AssertionError()
|
||||
if (-1 in emptyCharSequence.indices != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in emptyCharSequence.indices != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in emptyCharSequence.indices) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in emptyCharSequence.indices) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in emptyCharSequence.indices != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in emptyCharSequence.indices != !range1.contains(element2)) throw AssertionError()
|
||||
@@ -437,10 +437,10 @@ fun testR1xE2() {
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in emptyCharSequence.indices != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in emptyCharSequence.indices != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in emptyCharSequence.indices) != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in emptyCharSequence.indices) != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in emptyCharSequence.indices != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in emptyCharSequence.indices != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in emptyCharSequence.indices) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in emptyCharSequence.indices) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in emptyCharSequence.indices != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in emptyCharSequence.indices != !range1.contains(element3)) throw AssertionError()
|
||||
@@ -489,10 +489,10 @@ fun testR1xE6() {
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in emptyCharSequence.indices != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in emptyCharSequence.indices != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in emptyCharSequence.indices) != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in emptyCharSequence.indices) != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in emptyCharSequence.indices != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in emptyCharSequence.indices != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in emptyCharSequence.indices) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in emptyCharSequence.indices) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in emptyCharSequence.indices != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in emptyCharSequence.indices != !range1.contains(element7)) throw AssertionError()
|
||||
@@ -541,10 +541,10 @@ fun testR1xE10() {
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in emptyCharSequence.indices != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in emptyCharSequence.indices != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in emptyCharSequence.indices) != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in emptyCharSequence.indices) != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in emptyCharSequence.indices != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in emptyCharSequence.indices != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in emptyCharSequence.indices) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in emptyCharSequence.indices) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in emptyCharSequence.indices != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in emptyCharSequence.indices != !range1.contains(element11)) throw AssertionError()
|
||||
@@ -593,10 +593,10 @@ fun testR1xE14() {
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in emptyCharSequence.indices != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in emptyCharSequence.indices != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in emptyCharSequence.indices) != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in emptyCharSequence.indices) != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in emptyCharSequence.indices != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in emptyCharSequence.indices != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in emptyCharSequence.indices) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in emptyCharSequence.indices) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in emptyCharSequence.indices != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in emptyCharSequence.indices != !range1.contains(element15)) throw AssertionError()
|
||||
@@ -645,10 +645,10 @@ fun testR1xE18() {
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in emptyCharSequence.indices != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in emptyCharSequence.indices != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in emptyCharSequence.indices) != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in emptyCharSequence.indices) != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in emptyCharSequence.indices != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in emptyCharSequence.indices != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in emptyCharSequence.indices) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in emptyCharSequence.indices) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in emptyCharSequence.indices != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in emptyCharSequence.indices != !range1.contains(element19)) throw AssertionError()
|
||||
@@ -697,10 +697,10 @@ fun testR1xE22() {
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in emptyCharSequence.indices != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in emptyCharSequence.indices != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in emptyCharSequence.indices) != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in emptyCharSequence.indices) != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in emptyCharSequence.indices != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in emptyCharSequence.indices != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in emptyCharSequence.indices) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in emptyCharSequence.indices) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in emptyCharSequence.indices != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in emptyCharSequence.indices != !range1.contains(element23)) throw AssertionError()
|
||||
|
||||
+63
-63
@@ -9,28 +9,28 @@ val range1 = emptyCollection.indices
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = (-1)
|
||||
val element3 = (-1).toLong()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0.toLong()
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1.toLong()
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2.toLong()
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3.toLong()
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4.toLong()
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
@@ -112,10 +112,10 @@ fun testR0xE1() {
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in collection.indices != range0.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in collection.indices != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in collection.indices) != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in collection.indices) != range0.contains((-1))) throw AssertionError()
|
||||
if (-1 in collection.indices != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in collection.indices != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in collection.indices) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in collection.indices) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in collection.indices != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in collection.indices != !range0.contains(element2)) throw AssertionError()
|
||||
@@ -125,10 +125,10 @@ fun testR0xE2() {
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in collection.indices != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in collection.indices != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in collection.indices) != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in collection.indices) != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in collection.indices != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in collection.indices != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in collection.indices) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in collection.indices) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in collection.indices != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in collection.indices != !range0.contains(element3)) throw AssertionError()
|
||||
@@ -177,10 +177,10 @@ fun testR0xE6() {
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in collection.indices != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in collection.indices != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in collection.indices) != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in collection.indices) != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in collection.indices != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in collection.indices != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in collection.indices) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in collection.indices) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in collection.indices != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in collection.indices != !range0.contains(element7)) throw AssertionError()
|
||||
@@ -229,10 +229,10 @@ fun testR0xE10() {
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in collection.indices != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in collection.indices != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in collection.indices) != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in collection.indices) != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in collection.indices != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in collection.indices != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in collection.indices) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in collection.indices) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in collection.indices != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in collection.indices != !range0.contains(element11)) throw AssertionError()
|
||||
@@ -281,10 +281,10 @@ fun testR0xE14() {
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in collection.indices != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in collection.indices != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in collection.indices) != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in collection.indices) != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in collection.indices != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in collection.indices != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in collection.indices) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in collection.indices) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in collection.indices != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in collection.indices != !range0.contains(element15)) throw AssertionError()
|
||||
@@ -333,10 +333,10 @@ fun testR0xE18() {
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in collection.indices != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in collection.indices != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in collection.indices) != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in collection.indices) != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in collection.indices != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in collection.indices != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in collection.indices) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in collection.indices) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in collection.indices != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in collection.indices != !range0.contains(element19)) throw AssertionError()
|
||||
@@ -385,10 +385,10 @@ fun testR0xE22() {
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in collection.indices != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in collection.indices != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in collection.indices) != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in collection.indices) != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in collection.indices != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in collection.indices != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in collection.indices) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in collection.indices) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in collection.indices != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in collection.indices != !range0.contains(element23)) throw AssertionError()
|
||||
@@ -424,10 +424,10 @@ fun testR1xE1() {
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in emptyCollection.indices != range1.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in emptyCollection.indices != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in emptyCollection.indices) != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in emptyCollection.indices) != range1.contains((-1))) throw AssertionError()
|
||||
if (-1 in emptyCollection.indices != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in emptyCollection.indices != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in emptyCollection.indices) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in emptyCollection.indices) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in emptyCollection.indices != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in emptyCollection.indices != !range1.contains(element2)) throw AssertionError()
|
||||
@@ -437,10 +437,10 @@ fun testR1xE2() {
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in emptyCollection.indices != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in emptyCollection.indices != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in emptyCollection.indices) != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in emptyCollection.indices) != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in emptyCollection.indices != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in emptyCollection.indices != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in emptyCollection.indices) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in emptyCollection.indices) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in emptyCollection.indices != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in emptyCollection.indices != !range1.contains(element3)) throw AssertionError()
|
||||
@@ -489,10 +489,10 @@ fun testR1xE6() {
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in emptyCollection.indices != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in emptyCollection.indices != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in emptyCollection.indices) != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in emptyCollection.indices) != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in emptyCollection.indices != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in emptyCollection.indices != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in emptyCollection.indices) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in emptyCollection.indices) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in emptyCollection.indices != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in emptyCollection.indices != !range1.contains(element7)) throw AssertionError()
|
||||
@@ -541,10 +541,10 @@ fun testR1xE10() {
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in emptyCollection.indices != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in emptyCollection.indices != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in emptyCollection.indices) != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in emptyCollection.indices) != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in emptyCollection.indices != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in emptyCollection.indices != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in emptyCollection.indices) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in emptyCollection.indices) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in emptyCollection.indices != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in emptyCollection.indices != !range1.contains(element11)) throw AssertionError()
|
||||
@@ -593,10 +593,10 @@ fun testR1xE14() {
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in emptyCollection.indices != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in emptyCollection.indices != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in emptyCollection.indices) != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in emptyCollection.indices) != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in emptyCollection.indices != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in emptyCollection.indices != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in emptyCollection.indices) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in emptyCollection.indices) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in emptyCollection.indices != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in emptyCollection.indices != !range1.contains(element15)) throw AssertionError()
|
||||
@@ -645,10 +645,10 @@ fun testR1xE18() {
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in emptyCollection.indices != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in emptyCollection.indices != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in emptyCollection.indices) != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in emptyCollection.indices) != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in emptyCollection.indices != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in emptyCollection.indices != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in emptyCollection.indices) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in emptyCollection.indices) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in emptyCollection.indices != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in emptyCollection.indices != !range1.contains(element19)) throw AssertionError()
|
||||
@@ -697,10 +697,10 @@ fun testR1xE22() {
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in emptyCollection.indices != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in emptyCollection.indices != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in emptyCollection.indices) != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in emptyCollection.indices) != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in emptyCollection.indices != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in emptyCollection.indices != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in emptyCollection.indices) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in emptyCollection.indices) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in emptyCollection.indices != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in emptyCollection.indices != !range1.contains(element23)) throw AssertionError()
|
||||
|
||||
-362
@@ -1,362 +0,0 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1.0 .. 3.0
|
||||
val range1 = 3.0 .. 1.0
|
||||
|
||||
val element0 = (-1).toFloat()
|
||||
val element1 = (-1).toDouble()
|
||||
val element2 = 0.toFloat()
|
||||
val element3 = 0.toDouble()
|
||||
val element4 = 1.toFloat()
|
||||
val element5 = 1.toDouble()
|
||||
val element6 = 2.toFloat()
|
||||
val element7 = 2.toDouble()
|
||||
val element8 = 3.toFloat()
|
||||
val element9 = 3.toDouble()
|
||||
val element10 = 4.toFloat()
|
||||
val element11 = 4.toDouble()
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toFloat() in 1.0 .. 3.0 != range0.contains((-1).toFloat())) throw AssertionError()
|
||||
if ((-1).toFloat() !in 1.0 .. 3.0 != !range0.contains((-1).toFloat())) throw AssertionError()
|
||||
if (!((-1).toFloat() in 1.0 .. 3.0) != !range0.contains((-1).toFloat())) throw AssertionError()
|
||||
if (!((-1).toFloat() !in 1.0 .. 3.0) != range0.contains((-1).toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1.0 .. 3.0 != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1.0 .. 3.0 != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1.0 .. 3.0) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1.0 .. 3.0) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toDouble() in 1.0 .. 3.0 != range0.contains((-1).toDouble())) throw AssertionError()
|
||||
if ((-1).toDouble() !in 1.0 .. 3.0 != !range0.contains((-1).toDouble())) throw AssertionError()
|
||||
if (!((-1).toDouble() in 1.0 .. 3.0) != !range0.contains((-1).toDouble())) throw AssertionError()
|
||||
if (!((-1).toDouble() !in 1.0 .. 3.0) != range0.contains((-1).toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1.0 .. 3.0 != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1.0 .. 3.0 != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1.0 .. 3.0) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1.0 .. 3.0) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (0.toFloat() in 1.0 .. 3.0 != range0.contains(0.toFloat())) throw AssertionError()
|
||||
if (0.toFloat() !in 1.0 .. 3.0 != !range0.contains(0.toFloat())) throw AssertionError()
|
||||
if (!(0.toFloat() in 1.0 .. 3.0) != !range0.contains(0.toFloat())) throw AssertionError()
|
||||
if (!(0.toFloat() !in 1.0 .. 3.0) != range0.contains(0.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1.0 .. 3.0 != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1.0 .. 3.0 != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1.0 .. 3.0) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1.0 .. 3.0) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.toDouble() in 1.0 .. 3.0 != range0.contains(0.toDouble())) throw AssertionError()
|
||||
if (0.toDouble() !in 1.0 .. 3.0 != !range0.contains(0.toDouble())) throw AssertionError()
|
||||
if (!(0.toDouble() in 1.0 .. 3.0) != !range0.contains(0.toDouble())) throw AssertionError()
|
||||
if (!(0.toDouble() !in 1.0 .. 3.0) != range0.contains(0.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1.0 .. 3.0 != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1.0 .. 3.0 != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1.0 .. 3.0) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1.0 .. 3.0) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (1.toFloat() in 1.0 .. 3.0 != range0.contains(1.toFloat())) throw AssertionError()
|
||||
if (1.toFloat() !in 1.0 .. 3.0 != !range0.contains(1.toFloat())) throw AssertionError()
|
||||
if (!(1.toFloat() in 1.0 .. 3.0) != !range0.contains(1.toFloat())) throw AssertionError()
|
||||
if (!(1.toFloat() !in 1.0 .. 3.0) != range0.contains(1.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1.0 .. 3.0 != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1.0 .. 3.0 != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1.0 .. 3.0) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1.0 .. 3.0) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.toDouble() in 1.0 .. 3.0 != range0.contains(1.toDouble())) throw AssertionError()
|
||||
if (1.toDouble() !in 1.0 .. 3.0 != !range0.contains(1.toDouble())) throw AssertionError()
|
||||
if (!(1.toDouble() in 1.0 .. 3.0) != !range0.contains(1.toDouble())) throw AssertionError()
|
||||
if (!(1.toDouble() !in 1.0 .. 3.0) != range0.contains(1.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1.0 .. 3.0 != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1.0 .. 3.0 != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1.0 .. 3.0) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1.0 .. 3.0) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (2.toFloat() in 1.0 .. 3.0 != range0.contains(2.toFloat())) throw AssertionError()
|
||||
if (2.toFloat() !in 1.0 .. 3.0 != !range0.contains(2.toFloat())) throw AssertionError()
|
||||
if (!(2.toFloat() in 1.0 .. 3.0) != !range0.contains(2.toFloat())) throw AssertionError()
|
||||
if (!(2.toFloat() !in 1.0 .. 3.0) != range0.contains(2.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1.0 .. 3.0 != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1.0 .. 3.0 != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1.0 .. 3.0) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1.0 .. 3.0) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.toDouble() in 1.0 .. 3.0 != range0.contains(2.toDouble())) throw AssertionError()
|
||||
if (2.toDouble() !in 1.0 .. 3.0 != !range0.contains(2.toDouble())) throw AssertionError()
|
||||
if (!(2.toDouble() in 1.0 .. 3.0) != !range0.contains(2.toDouble())) throw AssertionError()
|
||||
if (!(2.toDouble() !in 1.0 .. 3.0) != range0.contains(2.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1.0 .. 3.0 != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1.0 .. 3.0 != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1.0 .. 3.0) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1.0 .. 3.0) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (3.toFloat() in 1.0 .. 3.0 != range0.contains(3.toFloat())) throw AssertionError()
|
||||
if (3.toFloat() !in 1.0 .. 3.0 != !range0.contains(3.toFloat())) throw AssertionError()
|
||||
if (!(3.toFloat() in 1.0 .. 3.0) != !range0.contains(3.toFloat())) throw AssertionError()
|
||||
if (!(3.toFloat() !in 1.0 .. 3.0) != range0.contains(3.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1.0 .. 3.0 != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1.0 .. 3.0 != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1.0 .. 3.0) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1.0 .. 3.0) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.toDouble() in 1.0 .. 3.0 != range0.contains(3.toDouble())) throw AssertionError()
|
||||
if (3.toDouble() !in 1.0 .. 3.0 != !range0.contains(3.toDouble())) throw AssertionError()
|
||||
if (!(3.toDouble() in 1.0 .. 3.0) != !range0.contains(3.toDouble())) throw AssertionError()
|
||||
if (!(3.toDouble() !in 1.0 .. 3.0) != range0.contains(3.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1.0 .. 3.0 != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1.0 .. 3.0 != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1.0 .. 3.0) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1.0 .. 3.0) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (4.toFloat() in 1.0 .. 3.0 != range0.contains(4.toFloat())) throw AssertionError()
|
||||
if (4.toFloat() !in 1.0 .. 3.0 != !range0.contains(4.toFloat())) throw AssertionError()
|
||||
if (!(4.toFloat() in 1.0 .. 3.0) != !range0.contains(4.toFloat())) throw AssertionError()
|
||||
if (!(4.toFloat() !in 1.0 .. 3.0) != range0.contains(4.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1.0 .. 3.0 != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1.0 .. 3.0 != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1.0 .. 3.0) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1.0 .. 3.0) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.toDouble() in 1.0 .. 3.0 != range0.contains(4.toDouble())) throw AssertionError()
|
||||
if (4.toDouble() !in 1.0 .. 3.0 != !range0.contains(4.toDouble())) throw AssertionError()
|
||||
if (!(4.toDouble() in 1.0 .. 3.0) != !range0.contains(4.toDouble())) throw AssertionError()
|
||||
if (!(4.toDouble() !in 1.0 .. 3.0) != range0.contains(4.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1.0 .. 3.0 != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1.0 .. 3.0 != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1.0 .. 3.0) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1.0 .. 3.0) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toFloat() in 3.0 .. 1.0 != range1.contains((-1).toFloat())) throw AssertionError()
|
||||
if ((-1).toFloat() !in 3.0 .. 1.0 != !range1.contains((-1).toFloat())) throw AssertionError()
|
||||
if (!((-1).toFloat() in 3.0 .. 1.0) != !range1.contains((-1).toFloat())) throw AssertionError()
|
||||
if (!((-1).toFloat() !in 3.0 .. 1.0) != range1.contains((-1).toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3.0 .. 1.0 != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3.0 .. 1.0 != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3.0 .. 1.0) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3.0 .. 1.0) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toDouble() in 3.0 .. 1.0 != range1.contains((-1).toDouble())) throw AssertionError()
|
||||
if ((-1).toDouble() !in 3.0 .. 1.0 != !range1.contains((-1).toDouble())) throw AssertionError()
|
||||
if (!((-1).toDouble() in 3.0 .. 1.0) != !range1.contains((-1).toDouble())) throw AssertionError()
|
||||
if (!((-1).toDouble() !in 3.0 .. 1.0) != range1.contains((-1).toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3.0 .. 1.0 != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3.0 .. 1.0 != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3.0 .. 1.0) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3.0 .. 1.0) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (0.toFloat() in 3.0 .. 1.0 != range1.contains(0.toFloat())) throw AssertionError()
|
||||
if (0.toFloat() !in 3.0 .. 1.0 != !range1.contains(0.toFloat())) throw AssertionError()
|
||||
if (!(0.toFloat() in 3.0 .. 1.0) != !range1.contains(0.toFloat())) throw AssertionError()
|
||||
if (!(0.toFloat() !in 3.0 .. 1.0) != range1.contains(0.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3.0 .. 1.0 != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3.0 .. 1.0 != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3.0 .. 1.0) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3.0 .. 1.0) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.toDouble() in 3.0 .. 1.0 != range1.contains(0.toDouble())) throw AssertionError()
|
||||
if (0.toDouble() !in 3.0 .. 1.0 != !range1.contains(0.toDouble())) throw AssertionError()
|
||||
if (!(0.toDouble() in 3.0 .. 1.0) != !range1.contains(0.toDouble())) throw AssertionError()
|
||||
if (!(0.toDouble() !in 3.0 .. 1.0) != range1.contains(0.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3.0 .. 1.0 != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3.0 .. 1.0 != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3.0 .. 1.0) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3.0 .. 1.0) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (1.toFloat() in 3.0 .. 1.0 != range1.contains(1.toFloat())) throw AssertionError()
|
||||
if (1.toFloat() !in 3.0 .. 1.0 != !range1.contains(1.toFloat())) throw AssertionError()
|
||||
if (!(1.toFloat() in 3.0 .. 1.0) != !range1.contains(1.toFloat())) throw AssertionError()
|
||||
if (!(1.toFloat() !in 3.0 .. 1.0) != range1.contains(1.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3.0 .. 1.0 != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3.0 .. 1.0 != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3.0 .. 1.0) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3.0 .. 1.0) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.toDouble() in 3.0 .. 1.0 != range1.contains(1.toDouble())) throw AssertionError()
|
||||
if (1.toDouble() !in 3.0 .. 1.0 != !range1.contains(1.toDouble())) throw AssertionError()
|
||||
if (!(1.toDouble() in 3.0 .. 1.0) != !range1.contains(1.toDouble())) throw AssertionError()
|
||||
if (!(1.toDouble() !in 3.0 .. 1.0) != range1.contains(1.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3.0 .. 1.0 != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3.0 .. 1.0 != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3.0 .. 1.0) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3.0 .. 1.0) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (2.toFloat() in 3.0 .. 1.0 != range1.contains(2.toFloat())) throw AssertionError()
|
||||
if (2.toFloat() !in 3.0 .. 1.0 != !range1.contains(2.toFloat())) throw AssertionError()
|
||||
if (!(2.toFloat() in 3.0 .. 1.0) != !range1.contains(2.toFloat())) throw AssertionError()
|
||||
if (!(2.toFloat() !in 3.0 .. 1.0) != range1.contains(2.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3.0 .. 1.0 != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3.0 .. 1.0 != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3.0 .. 1.0) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3.0 .. 1.0) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.toDouble() in 3.0 .. 1.0 != range1.contains(2.toDouble())) throw AssertionError()
|
||||
if (2.toDouble() !in 3.0 .. 1.0 != !range1.contains(2.toDouble())) throw AssertionError()
|
||||
if (!(2.toDouble() in 3.0 .. 1.0) != !range1.contains(2.toDouble())) throw AssertionError()
|
||||
if (!(2.toDouble() !in 3.0 .. 1.0) != range1.contains(2.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3.0 .. 1.0 != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3.0 .. 1.0 != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3.0 .. 1.0) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3.0 .. 1.0) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (3.toFloat() in 3.0 .. 1.0 != range1.contains(3.toFloat())) throw AssertionError()
|
||||
if (3.toFloat() !in 3.0 .. 1.0 != !range1.contains(3.toFloat())) throw AssertionError()
|
||||
if (!(3.toFloat() in 3.0 .. 1.0) != !range1.contains(3.toFloat())) throw AssertionError()
|
||||
if (!(3.toFloat() !in 3.0 .. 1.0) != range1.contains(3.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3.0 .. 1.0 != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3.0 .. 1.0 != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3.0 .. 1.0) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3.0 .. 1.0) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.toDouble() in 3.0 .. 1.0 != range1.contains(3.toDouble())) throw AssertionError()
|
||||
if (3.toDouble() !in 3.0 .. 1.0 != !range1.contains(3.toDouble())) throw AssertionError()
|
||||
if (!(3.toDouble() in 3.0 .. 1.0) != !range1.contains(3.toDouble())) throw AssertionError()
|
||||
if (!(3.toDouble() !in 3.0 .. 1.0) != range1.contains(3.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3.0 .. 1.0 != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3.0 .. 1.0 != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3.0 .. 1.0) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3.0 .. 1.0) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (4.toFloat() in 3.0 .. 1.0 != range1.contains(4.toFloat())) throw AssertionError()
|
||||
if (4.toFloat() !in 3.0 .. 1.0 != !range1.contains(4.toFloat())) throw AssertionError()
|
||||
if (!(4.toFloat() in 3.0 .. 1.0) != !range1.contains(4.toFloat())) throw AssertionError()
|
||||
if (!(4.toFloat() !in 3.0 .. 1.0) != range1.contains(4.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3.0 .. 1.0 != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3.0 .. 1.0 != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3.0 .. 1.0) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3.0 .. 1.0) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.toDouble() in 3.0 .. 1.0 != range1.contains(4.toDouble())) throw AssertionError()
|
||||
if (4.toDouble() !in 3.0 .. 1.0 != !range1.contains(4.toDouble())) throw AssertionError()
|
||||
if (!(4.toDouble() in 3.0 .. 1.0) != !range1.contains(4.toDouble())) throw AssertionError()
|
||||
if (!(4.toDouble() !in 3.0 .. 1.0) != range1.contains(4.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3.0 .. 1.0 != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3.0 .. 1.0 != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3.0 .. 1.0) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3.0 .. 1.0) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,362 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1.0..3.0
|
||||
val range1 = 3.0..1.0
|
||||
|
||||
val element0 = -1F
|
||||
val element1 = -1.0
|
||||
val element2 = 0F
|
||||
val element3 = 0.0
|
||||
val element4 = 1F
|
||||
val element5 = 1.0
|
||||
val element6 = 2F
|
||||
val element7 = 2.0
|
||||
val element8 = 3F
|
||||
val element9 = 3.0
|
||||
val element10 = 4F
|
||||
val element11 = 4.0
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (-1F in 1.0..3.0 != range0.contains(-1F)) throw AssertionError()
|
||||
if (-1F !in 1.0..3.0 != !range0.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F in 1.0..3.0) != !range0.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F !in 1.0..3.0) != range0.contains(-1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1.0..3.0 != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1.0..3.0 != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1.0..3.0) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1.0..3.0) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (-1.0 in 1.0..3.0 != range0.contains(-1.0)) throw AssertionError()
|
||||
if (-1.0 !in 1.0..3.0 != !range0.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 in 1.0..3.0) != !range0.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 !in 1.0..3.0) != range0.contains(-1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1.0..3.0 != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1.0..3.0 != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1.0..3.0) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1.0..3.0) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (0F in 1.0..3.0 != range0.contains(0F)) throw AssertionError()
|
||||
if (0F !in 1.0..3.0 != !range0.contains(0F)) throw AssertionError()
|
||||
if (!(0F in 1.0..3.0) != !range0.contains(0F)) throw AssertionError()
|
||||
if (!(0F !in 1.0..3.0) != range0.contains(0F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1.0..3.0 != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1.0..3.0 != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1.0..3.0) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1.0..3.0) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.0 in 1.0..3.0 != range0.contains(0.0)) throw AssertionError()
|
||||
if (0.0 !in 1.0..3.0 != !range0.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 in 1.0..3.0) != !range0.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 !in 1.0..3.0) != range0.contains(0.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1.0..3.0 != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1.0..3.0 != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1.0..3.0) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1.0..3.0) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (1F in 1.0..3.0 != range0.contains(1F)) throw AssertionError()
|
||||
if (1F !in 1.0..3.0 != !range0.contains(1F)) throw AssertionError()
|
||||
if (!(1F in 1.0..3.0) != !range0.contains(1F)) throw AssertionError()
|
||||
if (!(1F !in 1.0..3.0) != range0.contains(1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1.0..3.0 != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1.0..3.0 != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1.0..3.0) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1.0..3.0) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.0 in 1.0..3.0 != range0.contains(1.0)) throw AssertionError()
|
||||
if (1.0 !in 1.0..3.0 != !range0.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 in 1.0..3.0) != !range0.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 !in 1.0..3.0) != range0.contains(1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1.0..3.0 != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1.0..3.0 != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1.0..3.0) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1.0..3.0) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (2F in 1.0..3.0 != range0.contains(2F)) throw AssertionError()
|
||||
if (2F !in 1.0..3.0 != !range0.contains(2F)) throw AssertionError()
|
||||
if (!(2F in 1.0..3.0) != !range0.contains(2F)) throw AssertionError()
|
||||
if (!(2F !in 1.0..3.0) != range0.contains(2F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1.0..3.0 != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1.0..3.0 != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1.0..3.0) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1.0..3.0) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.0 in 1.0..3.0 != range0.contains(2.0)) throw AssertionError()
|
||||
if (2.0 !in 1.0..3.0 != !range0.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 in 1.0..3.0) != !range0.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 !in 1.0..3.0) != range0.contains(2.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1.0..3.0 != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1.0..3.0 != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1.0..3.0) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1.0..3.0) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (3F in 1.0..3.0 != range0.contains(3F)) throw AssertionError()
|
||||
if (3F !in 1.0..3.0 != !range0.contains(3F)) throw AssertionError()
|
||||
if (!(3F in 1.0..3.0) != !range0.contains(3F)) throw AssertionError()
|
||||
if (!(3F !in 1.0..3.0) != range0.contains(3F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1.0..3.0 != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1.0..3.0 != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1.0..3.0) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1.0..3.0) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.0 in 1.0..3.0 != range0.contains(3.0)) throw AssertionError()
|
||||
if (3.0 !in 1.0..3.0 != !range0.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 in 1.0..3.0) != !range0.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 !in 1.0..3.0) != range0.contains(3.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1.0..3.0 != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1.0..3.0 != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1.0..3.0) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1.0..3.0) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (4F in 1.0..3.0 != range0.contains(4F)) throw AssertionError()
|
||||
if (4F !in 1.0..3.0 != !range0.contains(4F)) throw AssertionError()
|
||||
if (!(4F in 1.0..3.0) != !range0.contains(4F)) throw AssertionError()
|
||||
if (!(4F !in 1.0..3.0) != range0.contains(4F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1.0..3.0 != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1.0..3.0 != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1.0..3.0) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1.0..3.0) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.0 in 1.0..3.0 != range0.contains(4.0)) throw AssertionError()
|
||||
if (4.0 !in 1.0..3.0 != !range0.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 in 1.0..3.0) != !range0.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 !in 1.0..3.0) != range0.contains(4.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1.0..3.0 != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1.0..3.0 != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1.0..3.0) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1.0..3.0) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (-1F in 3.0..1.0 != range1.contains(-1F)) throw AssertionError()
|
||||
if (-1F !in 3.0..1.0 != !range1.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F in 3.0..1.0) != !range1.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F !in 3.0..1.0) != range1.contains(-1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3.0..1.0 != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3.0..1.0 != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3.0..1.0) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3.0..1.0) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (-1.0 in 3.0..1.0 != range1.contains(-1.0)) throw AssertionError()
|
||||
if (-1.0 !in 3.0..1.0 != !range1.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 in 3.0..1.0) != !range1.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 !in 3.0..1.0) != range1.contains(-1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3.0..1.0 != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3.0..1.0 != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3.0..1.0) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3.0..1.0) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (0F in 3.0..1.0 != range1.contains(0F)) throw AssertionError()
|
||||
if (0F !in 3.0..1.0 != !range1.contains(0F)) throw AssertionError()
|
||||
if (!(0F in 3.0..1.0) != !range1.contains(0F)) throw AssertionError()
|
||||
if (!(0F !in 3.0..1.0) != range1.contains(0F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3.0..1.0 != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3.0..1.0 != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3.0..1.0) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3.0..1.0) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.0 in 3.0..1.0 != range1.contains(0.0)) throw AssertionError()
|
||||
if (0.0 !in 3.0..1.0 != !range1.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 in 3.0..1.0) != !range1.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 !in 3.0..1.0) != range1.contains(0.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3.0..1.0 != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3.0..1.0 != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3.0..1.0) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3.0..1.0) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (1F in 3.0..1.0 != range1.contains(1F)) throw AssertionError()
|
||||
if (1F !in 3.0..1.0 != !range1.contains(1F)) throw AssertionError()
|
||||
if (!(1F in 3.0..1.0) != !range1.contains(1F)) throw AssertionError()
|
||||
if (!(1F !in 3.0..1.0) != range1.contains(1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3.0..1.0 != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3.0..1.0 != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3.0..1.0) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3.0..1.0) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.0 in 3.0..1.0 != range1.contains(1.0)) throw AssertionError()
|
||||
if (1.0 !in 3.0..1.0 != !range1.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 in 3.0..1.0) != !range1.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 !in 3.0..1.0) != range1.contains(1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3.0..1.0 != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3.0..1.0 != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3.0..1.0) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3.0..1.0) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (2F in 3.0..1.0 != range1.contains(2F)) throw AssertionError()
|
||||
if (2F !in 3.0..1.0 != !range1.contains(2F)) throw AssertionError()
|
||||
if (!(2F in 3.0..1.0) != !range1.contains(2F)) throw AssertionError()
|
||||
if (!(2F !in 3.0..1.0) != range1.contains(2F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3.0..1.0 != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3.0..1.0 != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3.0..1.0) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3.0..1.0) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.0 in 3.0..1.0 != range1.contains(2.0)) throw AssertionError()
|
||||
if (2.0 !in 3.0..1.0 != !range1.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 in 3.0..1.0) != !range1.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 !in 3.0..1.0) != range1.contains(2.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3.0..1.0 != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3.0..1.0 != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3.0..1.0) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3.0..1.0) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (3F in 3.0..1.0 != range1.contains(3F)) throw AssertionError()
|
||||
if (3F !in 3.0..1.0 != !range1.contains(3F)) throw AssertionError()
|
||||
if (!(3F in 3.0..1.0) != !range1.contains(3F)) throw AssertionError()
|
||||
if (!(3F !in 3.0..1.0) != range1.contains(3F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3.0..1.0 != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3.0..1.0 != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3.0..1.0) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3.0..1.0) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.0 in 3.0..1.0 != range1.contains(3.0)) throw AssertionError()
|
||||
if (3.0 !in 3.0..1.0 != !range1.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 in 3.0..1.0) != !range1.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 !in 3.0..1.0) != range1.contains(3.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3.0..1.0 != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3.0..1.0 != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3.0..1.0) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3.0..1.0) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (4F in 3.0..1.0 != range1.contains(4F)) throw AssertionError()
|
||||
if (4F !in 3.0..1.0 != !range1.contains(4F)) throw AssertionError()
|
||||
if (!(4F in 3.0..1.0) != !range1.contains(4F)) throw AssertionError()
|
||||
if (!(4F !in 3.0..1.0) != range1.contains(4F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3.0..1.0 != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3.0..1.0 != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3.0..1.0) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3.0..1.0) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.0 in 3.0..1.0 != range1.contains(4.0)) throw AssertionError()
|
||||
if (4.0 !in 3.0..1.0 != !range1.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 in 3.0..1.0) != !range1.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 !in 3.0..1.0) != range1.contains(4.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3.0..1.0 != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3.0..1.0 != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3.0..1.0) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3.0..1.0) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,365 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||
// !LANGUAGE: +RangeUntilOperator
|
||||
@file:OptIn(ExperimentalStdlibApi::class)
|
||||
|
||||
|
||||
|
||||
val range0 = 1.0..<3.0
|
||||
val range1 = 3.0..<1.0
|
||||
|
||||
val element0 = -1F
|
||||
val element1 = -1.0
|
||||
val element2 = 0F
|
||||
val element3 = 0.0
|
||||
val element4 = 1F
|
||||
val element5 = 1.0
|
||||
val element6 = 2F
|
||||
val element7 = 2.0
|
||||
val element8 = 3F
|
||||
val element9 = 3.0
|
||||
val element10 = 4F
|
||||
val element11 = 4.0
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (-1F in 1.0..<3.0 != range0.contains(-1F)) throw AssertionError()
|
||||
if (-1F !in 1.0..<3.0 != !range0.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F in 1.0..<3.0) != !range0.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F !in 1.0..<3.0) != range0.contains(-1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1.0..<3.0 != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1.0..<3.0 != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1.0..<3.0) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1.0..<3.0) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (-1.0 in 1.0..<3.0 != range0.contains(-1.0)) throw AssertionError()
|
||||
if (-1.0 !in 1.0..<3.0 != !range0.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 in 1.0..<3.0) != !range0.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 !in 1.0..<3.0) != range0.contains(-1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1.0..<3.0 != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1.0..<3.0 != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1.0..<3.0) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1.0..<3.0) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (0F in 1.0..<3.0 != range0.contains(0F)) throw AssertionError()
|
||||
if (0F !in 1.0..<3.0 != !range0.contains(0F)) throw AssertionError()
|
||||
if (!(0F in 1.0..<3.0) != !range0.contains(0F)) throw AssertionError()
|
||||
if (!(0F !in 1.0..<3.0) != range0.contains(0F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1.0..<3.0 != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1.0..<3.0 != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1.0..<3.0) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1.0..<3.0) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.0 in 1.0..<3.0 != range0.contains(0.0)) throw AssertionError()
|
||||
if (0.0 !in 1.0..<3.0 != !range0.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 in 1.0..<3.0) != !range0.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 !in 1.0..<3.0) != range0.contains(0.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1.0..<3.0 != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1.0..<3.0 != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1.0..<3.0) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1.0..<3.0) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (1F in 1.0..<3.0 != range0.contains(1F)) throw AssertionError()
|
||||
if (1F !in 1.0..<3.0 != !range0.contains(1F)) throw AssertionError()
|
||||
if (!(1F in 1.0..<3.0) != !range0.contains(1F)) throw AssertionError()
|
||||
if (!(1F !in 1.0..<3.0) != range0.contains(1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1.0..<3.0 != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1.0..<3.0 != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1.0..<3.0) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1.0..<3.0) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.0 in 1.0..<3.0 != range0.contains(1.0)) throw AssertionError()
|
||||
if (1.0 !in 1.0..<3.0 != !range0.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 in 1.0..<3.0) != !range0.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 !in 1.0..<3.0) != range0.contains(1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1.0..<3.0 != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1.0..<3.0 != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1.0..<3.0) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1.0..<3.0) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (2F in 1.0..<3.0 != range0.contains(2F)) throw AssertionError()
|
||||
if (2F !in 1.0..<3.0 != !range0.contains(2F)) throw AssertionError()
|
||||
if (!(2F in 1.0..<3.0) != !range0.contains(2F)) throw AssertionError()
|
||||
if (!(2F !in 1.0..<3.0) != range0.contains(2F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1.0..<3.0 != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1.0..<3.0 != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1.0..<3.0) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1.0..<3.0) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.0 in 1.0..<3.0 != range0.contains(2.0)) throw AssertionError()
|
||||
if (2.0 !in 1.0..<3.0 != !range0.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 in 1.0..<3.0) != !range0.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 !in 1.0..<3.0) != range0.contains(2.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1.0..<3.0 != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1.0..<3.0 != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1.0..<3.0) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1.0..<3.0) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (3F in 1.0..<3.0 != range0.contains(3F)) throw AssertionError()
|
||||
if (3F !in 1.0..<3.0 != !range0.contains(3F)) throw AssertionError()
|
||||
if (!(3F in 1.0..<3.0) != !range0.contains(3F)) throw AssertionError()
|
||||
if (!(3F !in 1.0..<3.0) != range0.contains(3F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1.0..<3.0 != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1.0..<3.0 != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1.0..<3.0) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1.0..<3.0) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.0 in 1.0..<3.0 != range0.contains(3.0)) throw AssertionError()
|
||||
if (3.0 !in 1.0..<3.0 != !range0.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 in 1.0..<3.0) != !range0.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 !in 1.0..<3.0) != range0.contains(3.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1.0..<3.0 != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1.0..<3.0 != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1.0..<3.0) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1.0..<3.0) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (4F in 1.0..<3.0 != range0.contains(4F)) throw AssertionError()
|
||||
if (4F !in 1.0..<3.0 != !range0.contains(4F)) throw AssertionError()
|
||||
if (!(4F in 1.0..<3.0) != !range0.contains(4F)) throw AssertionError()
|
||||
if (!(4F !in 1.0..<3.0) != range0.contains(4F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1.0..<3.0 != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1.0..<3.0 != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1.0..<3.0) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1.0..<3.0) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.0 in 1.0..<3.0 != range0.contains(4.0)) throw AssertionError()
|
||||
if (4.0 !in 1.0..<3.0 != !range0.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 in 1.0..<3.0) != !range0.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 !in 1.0..<3.0) != range0.contains(4.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1.0..<3.0 != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1.0..<3.0 != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1.0..<3.0) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1.0..<3.0) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (-1F in 3.0..<1.0 != range1.contains(-1F)) throw AssertionError()
|
||||
if (-1F !in 3.0..<1.0 != !range1.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F in 3.0..<1.0) != !range1.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F !in 3.0..<1.0) != range1.contains(-1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3.0..<1.0 != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3.0..<1.0 != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3.0..<1.0) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3.0..<1.0) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (-1.0 in 3.0..<1.0 != range1.contains(-1.0)) throw AssertionError()
|
||||
if (-1.0 !in 3.0..<1.0 != !range1.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 in 3.0..<1.0) != !range1.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 !in 3.0..<1.0) != range1.contains(-1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3.0..<1.0 != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3.0..<1.0 != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3.0..<1.0) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3.0..<1.0) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (0F in 3.0..<1.0 != range1.contains(0F)) throw AssertionError()
|
||||
if (0F !in 3.0..<1.0 != !range1.contains(0F)) throw AssertionError()
|
||||
if (!(0F in 3.0..<1.0) != !range1.contains(0F)) throw AssertionError()
|
||||
if (!(0F !in 3.0..<1.0) != range1.contains(0F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3.0..<1.0 != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3.0..<1.0 != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3.0..<1.0) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3.0..<1.0) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.0 in 3.0..<1.0 != range1.contains(0.0)) throw AssertionError()
|
||||
if (0.0 !in 3.0..<1.0 != !range1.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 in 3.0..<1.0) != !range1.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 !in 3.0..<1.0) != range1.contains(0.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3.0..<1.0 != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3.0..<1.0 != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3.0..<1.0) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3.0..<1.0) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (1F in 3.0..<1.0 != range1.contains(1F)) throw AssertionError()
|
||||
if (1F !in 3.0..<1.0 != !range1.contains(1F)) throw AssertionError()
|
||||
if (!(1F in 3.0..<1.0) != !range1.contains(1F)) throw AssertionError()
|
||||
if (!(1F !in 3.0..<1.0) != range1.contains(1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3.0..<1.0 != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3.0..<1.0 != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3.0..<1.0) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3.0..<1.0) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.0 in 3.0..<1.0 != range1.contains(1.0)) throw AssertionError()
|
||||
if (1.0 !in 3.0..<1.0 != !range1.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 in 3.0..<1.0) != !range1.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 !in 3.0..<1.0) != range1.contains(1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3.0..<1.0 != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3.0..<1.0 != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3.0..<1.0) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3.0..<1.0) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (2F in 3.0..<1.0 != range1.contains(2F)) throw AssertionError()
|
||||
if (2F !in 3.0..<1.0 != !range1.contains(2F)) throw AssertionError()
|
||||
if (!(2F in 3.0..<1.0) != !range1.contains(2F)) throw AssertionError()
|
||||
if (!(2F !in 3.0..<1.0) != range1.contains(2F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3.0..<1.0 != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3.0..<1.0 != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3.0..<1.0) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3.0..<1.0) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.0 in 3.0..<1.0 != range1.contains(2.0)) throw AssertionError()
|
||||
if (2.0 !in 3.0..<1.0 != !range1.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 in 3.0..<1.0) != !range1.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 !in 3.0..<1.0) != range1.contains(2.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3.0..<1.0 != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3.0..<1.0 != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3.0..<1.0) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3.0..<1.0) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (3F in 3.0..<1.0 != range1.contains(3F)) throw AssertionError()
|
||||
if (3F !in 3.0..<1.0 != !range1.contains(3F)) throw AssertionError()
|
||||
if (!(3F in 3.0..<1.0) != !range1.contains(3F)) throw AssertionError()
|
||||
if (!(3F !in 3.0..<1.0) != range1.contains(3F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3.0..<1.0 != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3.0..<1.0 != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3.0..<1.0) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3.0..<1.0) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.0 in 3.0..<1.0 != range1.contains(3.0)) throw AssertionError()
|
||||
if (3.0 !in 3.0..<1.0 != !range1.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 in 3.0..<1.0) != !range1.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 !in 3.0..<1.0) != range1.contains(3.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3.0..<1.0 != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3.0..<1.0 != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3.0..<1.0) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3.0..<1.0) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (4F in 3.0..<1.0 != range1.contains(4F)) throw AssertionError()
|
||||
if (4F !in 3.0..<1.0 != !range1.contains(4F)) throw AssertionError()
|
||||
if (!(4F in 3.0..<1.0) != !range1.contains(4F)) throw AssertionError()
|
||||
if (!(4F !in 3.0..<1.0) != range1.contains(4F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3.0..<1.0 != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3.0..<1.0 != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3.0..<1.0) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3.0..<1.0) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.0 in 3.0..<1.0 != range1.contains(4.0)) throw AssertionError()
|
||||
if (4.0 !in 3.0..<1.0 != !range1.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 in 3.0..<1.0) != !range1.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 !in 3.0..<1.0) != range1.contains(4.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3.0..<1.0 != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3.0..<1.0 != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3.0..<1.0) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3.0..<1.0) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
-362
@@ -1,362 +0,0 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1.0F .. 3.0F
|
||||
val range1 = 3.0F .. 1.0F
|
||||
|
||||
val element0 = (-1).toFloat()
|
||||
val element1 = (-1).toDouble()
|
||||
val element2 = 0.toFloat()
|
||||
val element3 = 0.toDouble()
|
||||
val element4 = 1.toFloat()
|
||||
val element5 = 1.toDouble()
|
||||
val element6 = 2.toFloat()
|
||||
val element7 = 2.toDouble()
|
||||
val element8 = 3.toFloat()
|
||||
val element9 = 3.toDouble()
|
||||
val element10 = 4.toFloat()
|
||||
val element11 = 4.toDouble()
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toFloat() in 1.0F .. 3.0F != range0.contains((-1).toFloat())) throw AssertionError()
|
||||
if ((-1).toFloat() !in 1.0F .. 3.0F != !range0.contains((-1).toFloat())) throw AssertionError()
|
||||
if (!((-1).toFloat() in 1.0F .. 3.0F) != !range0.contains((-1).toFloat())) throw AssertionError()
|
||||
if (!((-1).toFloat() !in 1.0F .. 3.0F) != range0.contains((-1).toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1.0F .. 3.0F != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1.0F .. 3.0F != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1.0F .. 3.0F) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1.0F .. 3.0F) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toDouble() in 1.0F .. 3.0F != range0.contains((-1).toDouble())) throw AssertionError()
|
||||
if ((-1).toDouble() !in 1.0F .. 3.0F != !range0.contains((-1).toDouble())) throw AssertionError()
|
||||
if (!((-1).toDouble() in 1.0F .. 3.0F) != !range0.contains((-1).toDouble())) throw AssertionError()
|
||||
if (!((-1).toDouble() !in 1.0F .. 3.0F) != range0.contains((-1).toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1.0F .. 3.0F != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1.0F .. 3.0F != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1.0F .. 3.0F) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1.0F .. 3.0F) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (0.toFloat() in 1.0F .. 3.0F != range0.contains(0.toFloat())) throw AssertionError()
|
||||
if (0.toFloat() !in 1.0F .. 3.0F != !range0.contains(0.toFloat())) throw AssertionError()
|
||||
if (!(0.toFloat() in 1.0F .. 3.0F) != !range0.contains(0.toFloat())) throw AssertionError()
|
||||
if (!(0.toFloat() !in 1.0F .. 3.0F) != range0.contains(0.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1.0F .. 3.0F != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1.0F .. 3.0F != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1.0F .. 3.0F) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1.0F .. 3.0F) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.toDouble() in 1.0F .. 3.0F != range0.contains(0.toDouble())) throw AssertionError()
|
||||
if (0.toDouble() !in 1.0F .. 3.0F != !range0.contains(0.toDouble())) throw AssertionError()
|
||||
if (!(0.toDouble() in 1.0F .. 3.0F) != !range0.contains(0.toDouble())) throw AssertionError()
|
||||
if (!(0.toDouble() !in 1.0F .. 3.0F) != range0.contains(0.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1.0F .. 3.0F != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1.0F .. 3.0F != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1.0F .. 3.0F) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1.0F .. 3.0F) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (1.toFloat() in 1.0F .. 3.0F != range0.contains(1.toFloat())) throw AssertionError()
|
||||
if (1.toFloat() !in 1.0F .. 3.0F != !range0.contains(1.toFloat())) throw AssertionError()
|
||||
if (!(1.toFloat() in 1.0F .. 3.0F) != !range0.contains(1.toFloat())) throw AssertionError()
|
||||
if (!(1.toFloat() !in 1.0F .. 3.0F) != range0.contains(1.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1.0F .. 3.0F != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1.0F .. 3.0F != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1.0F .. 3.0F) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1.0F .. 3.0F) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.toDouble() in 1.0F .. 3.0F != range0.contains(1.toDouble())) throw AssertionError()
|
||||
if (1.toDouble() !in 1.0F .. 3.0F != !range0.contains(1.toDouble())) throw AssertionError()
|
||||
if (!(1.toDouble() in 1.0F .. 3.0F) != !range0.contains(1.toDouble())) throw AssertionError()
|
||||
if (!(1.toDouble() !in 1.0F .. 3.0F) != range0.contains(1.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1.0F .. 3.0F != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1.0F .. 3.0F != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1.0F .. 3.0F) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1.0F .. 3.0F) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (2.toFloat() in 1.0F .. 3.0F != range0.contains(2.toFloat())) throw AssertionError()
|
||||
if (2.toFloat() !in 1.0F .. 3.0F != !range0.contains(2.toFloat())) throw AssertionError()
|
||||
if (!(2.toFloat() in 1.0F .. 3.0F) != !range0.contains(2.toFloat())) throw AssertionError()
|
||||
if (!(2.toFloat() !in 1.0F .. 3.0F) != range0.contains(2.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1.0F .. 3.0F != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1.0F .. 3.0F != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1.0F .. 3.0F) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1.0F .. 3.0F) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.toDouble() in 1.0F .. 3.0F != range0.contains(2.toDouble())) throw AssertionError()
|
||||
if (2.toDouble() !in 1.0F .. 3.0F != !range0.contains(2.toDouble())) throw AssertionError()
|
||||
if (!(2.toDouble() in 1.0F .. 3.0F) != !range0.contains(2.toDouble())) throw AssertionError()
|
||||
if (!(2.toDouble() !in 1.0F .. 3.0F) != range0.contains(2.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1.0F .. 3.0F != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1.0F .. 3.0F != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1.0F .. 3.0F) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1.0F .. 3.0F) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (3.toFloat() in 1.0F .. 3.0F != range0.contains(3.toFloat())) throw AssertionError()
|
||||
if (3.toFloat() !in 1.0F .. 3.0F != !range0.contains(3.toFloat())) throw AssertionError()
|
||||
if (!(3.toFloat() in 1.0F .. 3.0F) != !range0.contains(3.toFloat())) throw AssertionError()
|
||||
if (!(3.toFloat() !in 1.0F .. 3.0F) != range0.contains(3.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1.0F .. 3.0F != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1.0F .. 3.0F != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1.0F .. 3.0F) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1.0F .. 3.0F) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.toDouble() in 1.0F .. 3.0F != range0.contains(3.toDouble())) throw AssertionError()
|
||||
if (3.toDouble() !in 1.0F .. 3.0F != !range0.contains(3.toDouble())) throw AssertionError()
|
||||
if (!(3.toDouble() in 1.0F .. 3.0F) != !range0.contains(3.toDouble())) throw AssertionError()
|
||||
if (!(3.toDouble() !in 1.0F .. 3.0F) != range0.contains(3.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1.0F .. 3.0F != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1.0F .. 3.0F != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1.0F .. 3.0F) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1.0F .. 3.0F) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (4.toFloat() in 1.0F .. 3.0F != range0.contains(4.toFloat())) throw AssertionError()
|
||||
if (4.toFloat() !in 1.0F .. 3.0F != !range0.contains(4.toFloat())) throw AssertionError()
|
||||
if (!(4.toFloat() in 1.0F .. 3.0F) != !range0.contains(4.toFloat())) throw AssertionError()
|
||||
if (!(4.toFloat() !in 1.0F .. 3.0F) != range0.contains(4.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1.0F .. 3.0F != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1.0F .. 3.0F != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1.0F .. 3.0F) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1.0F .. 3.0F) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.toDouble() in 1.0F .. 3.0F != range0.contains(4.toDouble())) throw AssertionError()
|
||||
if (4.toDouble() !in 1.0F .. 3.0F != !range0.contains(4.toDouble())) throw AssertionError()
|
||||
if (!(4.toDouble() in 1.0F .. 3.0F) != !range0.contains(4.toDouble())) throw AssertionError()
|
||||
if (!(4.toDouble() !in 1.0F .. 3.0F) != range0.contains(4.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1.0F .. 3.0F != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1.0F .. 3.0F != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1.0F .. 3.0F) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1.0F .. 3.0F) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toFloat() in 3.0F .. 1.0F != range1.contains((-1).toFloat())) throw AssertionError()
|
||||
if ((-1).toFloat() !in 3.0F .. 1.0F != !range1.contains((-1).toFloat())) throw AssertionError()
|
||||
if (!((-1).toFloat() in 3.0F .. 1.0F) != !range1.contains((-1).toFloat())) throw AssertionError()
|
||||
if (!((-1).toFloat() !in 3.0F .. 1.0F) != range1.contains((-1).toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3.0F .. 1.0F != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3.0F .. 1.0F != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3.0F .. 1.0F) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3.0F .. 1.0F) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toDouble() in 3.0F .. 1.0F != range1.contains((-1).toDouble())) throw AssertionError()
|
||||
if ((-1).toDouble() !in 3.0F .. 1.0F != !range1.contains((-1).toDouble())) throw AssertionError()
|
||||
if (!((-1).toDouble() in 3.0F .. 1.0F) != !range1.contains((-1).toDouble())) throw AssertionError()
|
||||
if (!((-1).toDouble() !in 3.0F .. 1.0F) != range1.contains((-1).toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3.0F .. 1.0F != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3.0F .. 1.0F != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3.0F .. 1.0F) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3.0F .. 1.0F) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (0.toFloat() in 3.0F .. 1.0F != range1.contains(0.toFloat())) throw AssertionError()
|
||||
if (0.toFloat() !in 3.0F .. 1.0F != !range1.contains(0.toFloat())) throw AssertionError()
|
||||
if (!(0.toFloat() in 3.0F .. 1.0F) != !range1.contains(0.toFloat())) throw AssertionError()
|
||||
if (!(0.toFloat() !in 3.0F .. 1.0F) != range1.contains(0.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3.0F .. 1.0F != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3.0F .. 1.0F != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3.0F .. 1.0F) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3.0F .. 1.0F) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.toDouble() in 3.0F .. 1.0F != range1.contains(0.toDouble())) throw AssertionError()
|
||||
if (0.toDouble() !in 3.0F .. 1.0F != !range1.contains(0.toDouble())) throw AssertionError()
|
||||
if (!(0.toDouble() in 3.0F .. 1.0F) != !range1.contains(0.toDouble())) throw AssertionError()
|
||||
if (!(0.toDouble() !in 3.0F .. 1.0F) != range1.contains(0.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3.0F .. 1.0F != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3.0F .. 1.0F != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3.0F .. 1.0F) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3.0F .. 1.0F) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (1.toFloat() in 3.0F .. 1.0F != range1.contains(1.toFloat())) throw AssertionError()
|
||||
if (1.toFloat() !in 3.0F .. 1.0F != !range1.contains(1.toFloat())) throw AssertionError()
|
||||
if (!(1.toFloat() in 3.0F .. 1.0F) != !range1.contains(1.toFloat())) throw AssertionError()
|
||||
if (!(1.toFloat() !in 3.0F .. 1.0F) != range1.contains(1.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3.0F .. 1.0F != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3.0F .. 1.0F != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3.0F .. 1.0F) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3.0F .. 1.0F) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.toDouble() in 3.0F .. 1.0F != range1.contains(1.toDouble())) throw AssertionError()
|
||||
if (1.toDouble() !in 3.0F .. 1.0F != !range1.contains(1.toDouble())) throw AssertionError()
|
||||
if (!(1.toDouble() in 3.0F .. 1.0F) != !range1.contains(1.toDouble())) throw AssertionError()
|
||||
if (!(1.toDouble() !in 3.0F .. 1.0F) != range1.contains(1.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3.0F .. 1.0F != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3.0F .. 1.0F != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3.0F .. 1.0F) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3.0F .. 1.0F) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (2.toFloat() in 3.0F .. 1.0F != range1.contains(2.toFloat())) throw AssertionError()
|
||||
if (2.toFloat() !in 3.0F .. 1.0F != !range1.contains(2.toFloat())) throw AssertionError()
|
||||
if (!(2.toFloat() in 3.0F .. 1.0F) != !range1.contains(2.toFloat())) throw AssertionError()
|
||||
if (!(2.toFloat() !in 3.0F .. 1.0F) != range1.contains(2.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3.0F .. 1.0F != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3.0F .. 1.0F != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3.0F .. 1.0F) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3.0F .. 1.0F) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.toDouble() in 3.0F .. 1.0F != range1.contains(2.toDouble())) throw AssertionError()
|
||||
if (2.toDouble() !in 3.0F .. 1.0F != !range1.contains(2.toDouble())) throw AssertionError()
|
||||
if (!(2.toDouble() in 3.0F .. 1.0F) != !range1.contains(2.toDouble())) throw AssertionError()
|
||||
if (!(2.toDouble() !in 3.0F .. 1.0F) != range1.contains(2.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3.0F .. 1.0F != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3.0F .. 1.0F != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3.0F .. 1.0F) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3.0F .. 1.0F) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (3.toFloat() in 3.0F .. 1.0F != range1.contains(3.toFloat())) throw AssertionError()
|
||||
if (3.toFloat() !in 3.0F .. 1.0F != !range1.contains(3.toFloat())) throw AssertionError()
|
||||
if (!(3.toFloat() in 3.0F .. 1.0F) != !range1.contains(3.toFloat())) throw AssertionError()
|
||||
if (!(3.toFloat() !in 3.0F .. 1.0F) != range1.contains(3.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3.0F .. 1.0F != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3.0F .. 1.0F != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3.0F .. 1.0F) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3.0F .. 1.0F) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.toDouble() in 3.0F .. 1.0F != range1.contains(3.toDouble())) throw AssertionError()
|
||||
if (3.toDouble() !in 3.0F .. 1.0F != !range1.contains(3.toDouble())) throw AssertionError()
|
||||
if (!(3.toDouble() in 3.0F .. 1.0F) != !range1.contains(3.toDouble())) throw AssertionError()
|
||||
if (!(3.toDouble() !in 3.0F .. 1.0F) != range1.contains(3.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3.0F .. 1.0F != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3.0F .. 1.0F != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3.0F .. 1.0F) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3.0F .. 1.0F) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (4.toFloat() in 3.0F .. 1.0F != range1.contains(4.toFloat())) throw AssertionError()
|
||||
if (4.toFloat() !in 3.0F .. 1.0F != !range1.contains(4.toFloat())) throw AssertionError()
|
||||
if (!(4.toFloat() in 3.0F .. 1.0F) != !range1.contains(4.toFloat())) throw AssertionError()
|
||||
if (!(4.toFloat() !in 3.0F .. 1.0F) != range1.contains(4.toFloat())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3.0F .. 1.0F != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3.0F .. 1.0F != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3.0F .. 1.0F) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3.0F .. 1.0F) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.toDouble() in 3.0F .. 1.0F != range1.contains(4.toDouble())) throw AssertionError()
|
||||
if (4.toDouble() !in 3.0F .. 1.0F != !range1.contains(4.toDouble())) throw AssertionError()
|
||||
if (!(4.toDouble() in 3.0F .. 1.0F) != !range1.contains(4.toDouble())) throw AssertionError()
|
||||
if (!(4.toDouble() !in 3.0F .. 1.0F) != range1.contains(4.toDouble())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3.0F .. 1.0F != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3.0F .. 1.0F != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3.0F .. 1.0F) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3.0F .. 1.0F) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,362 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1.0F..3.0F
|
||||
val range1 = 3.0F..1.0F
|
||||
|
||||
val element0 = -1F
|
||||
val element1 = -1.0
|
||||
val element2 = 0F
|
||||
val element3 = 0.0
|
||||
val element4 = 1F
|
||||
val element5 = 1.0
|
||||
val element6 = 2F
|
||||
val element7 = 2.0
|
||||
val element8 = 3F
|
||||
val element9 = 3.0
|
||||
val element10 = 4F
|
||||
val element11 = 4.0
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (-1F in 1.0F..3.0F != range0.contains(-1F)) throw AssertionError()
|
||||
if (-1F !in 1.0F..3.0F != !range0.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F in 1.0F..3.0F) != !range0.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F !in 1.0F..3.0F) != range0.contains(-1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1.0F..3.0F != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1.0F..3.0F != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1.0F..3.0F) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1.0F..3.0F) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (-1.0 in 1.0F..3.0F != range0.contains(-1.0)) throw AssertionError()
|
||||
if (-1.0 !in 1.0F..3.0F != !range0.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 in 1.0F..3.0F) != !range0.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 !in 1.0F..3.0F) != range0.contains(-1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1.0F..3.0F != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1.0F..3.0F != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1.0F..3.0F) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1.0F..3.0F) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (0F in 1.0F..3.0F != range0.contains(0F)) throw AssertionError()
|
||||
if (0F !in 1.0F..3.0F != !range0.contains(0F)) throw AssertionError()
|
||||
if (!(0F in 1.0F..3.0F) != !range0.contains(0F)) throw AssertionError()
|
||||
if (!(0F !in 1.0F..3.0F) != range0.contains(0F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1.0F..3.0F != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1.0F..3.0F != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1.0F..3.0F) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1.0F..3.0F) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.0 in 1.0F..3.0F != range0.contains(0.0)) throw AssertionError()
|
||||
if (0.0 !in 1.0F..3.0F != !range0.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 in 1.0F..3.0F) != !range0.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 !in 1.0F..3.0F) != range0.contains(0.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1.0F..3.0F != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1.0F..3.0F != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1.0F..3.0F) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1.0F..3.0F) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (1F in 1.0F..3.0F != range0.contains(1F)) throw AssertionError()
|
||||
if (1F !in 1.0F..3.0F != !range0.contains(1F)) throw AssertionError()
|
||||
if (!(1F in 1.0F..3.0F) != !range0.contains(1F)) throw AssertionError()
|
||||
if (!(1F !in 1.0F..3.0F) != range0.contains(1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1.0F..3.0F != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1.0F..3.0F != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1.0F..3.0F) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1.0F..3.0F) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.0 in 1.0F..3.0F != range0.contains(1.0)) throw AssertionError()
|
||||
if (1.0 !in 1.0F..3.0F != !range0.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 in 1.0F..3.0F) != !range0.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 !in 1.0F..3.0F) != range0.contains(1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1.0F..3.0F != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1.0F..3.0F != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1.0F..3.0F) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1.0F..3.0F) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (2F in 1.0F..3.0F != range0.contains(2F)) throw AssertionError()
|
||||
if (2F !in 1.0F..3.0F != !range0.contains(2F)) throw AssertionError()
|
||||
if (!(2F in 1.0F..3.0F) != !range0.contains(2F)) throw AssertionError()
|
||||
if (!(2F !in 1.0F..3.0F) != range0.contains(2F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1.0F..3.0F != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1.0F..3.0F != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1.0F..3.0F) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1.0F..3.0F) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.0 in 1.0F..3.0F != range0.contains(2.0)) throw AssertionError()
|
||||
if (2.0 !in 1.0F..3.0F != !range0.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 in 1.0F..3.0F) != !range0.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 !in 1.0F..3.0F) != range0.contains(2.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1.0F..3.0F != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1.0F..3.0F != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1.0F..3.0F) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1.0F..3.0F) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (3F in 1.0F..3.0F != range0.contains(3F)) throw AssertionError()
|
||||
if (3F !in 1.0F..3.0F != !range0.contains(3F)) throw AssertionError()
|
||||
if (!(3F in 1.0F..3.0F) != !range0.contains(3F)) throw AssertionError()
|
||||
if (!(3F !in 1.0F..3.0F) != range0.contains(3F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1.0F..3.0F != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1.0F..3.0F != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1.0F..3.0F) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1.0F..3.0F) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.0 in 1.0F..3.0F != range0.contains(3.0)) throw AssertionError()
|
||||
if (3.0 !in 1.0F..3.0F != !range0.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 in 1.0F..3.0F) != !range0.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 !in 1.0F..3.0F) != range0.contains(3.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1.0F..3.0F != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1.0F..3.0F != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1.0F..3.0F) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1.0F..3.0F) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (4F in 1.0F..3.0F != range0.contains(4F)) throw AssertionError()
|
||||
if (4F !in 1.0F..3.0F != !range0.contains(4F)) throw AssertionError()
|
||||
if (!(4F in 1.0F..3.0F) != !range0.contains(4F)) throw AssertionError()
|
||||
if (!(4F !in 1.0F..3.0F) != range0.contains(4F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1.0F..3.0F != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1.0F..3.0F != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1.0F..3.0F) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1.0F..3.0F) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.0 in 1.0F..3.0F != range0.contains(4.0)) throw AssertionError()
|
||||
if (4.0 !in 1.0F..3.0F != !range0.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 in 1.0F..3.0F) != !range0.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 !in 1.0F..3.0F) != range0.contains(4.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1.0F..3.0F != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1.0F..3.0F != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1.0F..3.0F) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1.0F..3.0F) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (-1F in 3.0F..1.0F != range1.contains(-1F)) throw AssertionError()
|
||||
if (-1F !in 3.0F..1.0F != !range1.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F in 3.0F..1.0F) != !range1.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F !in 3.0F..1.0F) != range1.contains(-1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3.0F..1.0F != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3.0F..1.0F != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3.0F..1.0F) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3.0F..1.0F) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (-1.0 in 3.0F..1.0F != range1.contains(-1.0)) throw AssertionError()
|
||||
if (-1.0 !in 3.0F..1.0F != !range1.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 in 3.0F..1.0F) != !range1.contains(-1.0)) throw AssertionError()
|
||||
if (!(-1.0 !in 3.0F..1.0F) != range1.contains(-1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3.0F..1.0F != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3.0F..1.0F != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3.0F..1.0F) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3.0F..1.0F) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (0F in 3.0F..1.0F != range1.contains(0F)) throw AssertionError()
|
||||
if (0F !in 3.0F..1.0F != !range1.contains(0F)) throw AssertionError()
|
||||
if (!(0F in 3.0F..1.0F) != !range1.contains(0F)) throw AssertionError()
|
||||
if (!(0F !in 3.0F..1.0F) != range1.contains(0F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3.0F..1.0F != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3.0F..1.0F != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3.0F..1.0F) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3.0F..1.0F) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (0.0 in 3.0F..1.0F != range1.contains(0.0)) throw AssertionError()
|
||||
if (0.0 !in 3.0F..1.0F != !range1.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 in 3.0F..1.0F) != !range1.contains(0.0)) throw AssertionError()
|
||||
if (!(0.0 !in 3.0F..1.0F) != range1.contains(0.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3.0F..1.0F != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3.0F..1.0F != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3.0F..1.0F) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3.0F..1.0F) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (1F in 3.0F..1.0F != range1.contains(1F)) throw AssertionError()
|
||||
if (1F !in 3.0F..1.0F != !range1.contains(1F)) throw AssertionError()
|
||||
if (!(1F in 3.0F..1.0F) != !range1.contains(1F)) throw AssertionError()
|
||||
if (!(1F !in 3.0F..1.0F) != range1.contains(1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3.0F..1.0F != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3.0F..1.0F != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3.0F..1.0F) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3.0F..1.0F) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (1.0 in 3.0F..1.0F != range1.contains(1.0)) throw AssertionError()
|
||||
if (1.0 !in 3.0F..1.0F != !range1.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 in 3.0F..1.0F) != !range1.contains(1.0)) throw AssertionError()
|
||||
if (!(1.0 !in 3.0F..1.0F) != range1.contains(1.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3.0F..1.0F != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3.0F..1.0F != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3.0F..1.0F) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3.0F..1.0F) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (2F in 3.0F..1.0F != range1.contains(2F)) throw AssertionError()
|
||||
if (2F !in 3.0F..1.0F != !range1.contains(2F)) throw AssertionError()
|
||||
if (!(2F in 3.0F..1.0F) != !range1.contains(2F)) throw AssertionError()
|
||||
if (!(2F !in 3.0F..1.0F) != range1.contains(2F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3.0F..1.0F != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3.0F..1.0F != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3.0F..1.0F) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3.0F..1.0F) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (2.0 in 3.0F..1.0F != range1.contains(2.0)) throw AssertionError()
|
||||
if (2.0 !in 3.0F..1.0F != !range1.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 in 3.0F..1.0F) != !range1.contains(2.0)) throw AssertionError()
|
||||
if (!(2.0 !in 3.0F..1.0F) != range1.contains(2.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3.0F..1.0F != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3.0F..1.0F != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3.0F..1.0F) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3.0F..1.0F) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (3F in 3.0F..1.0F != range1.contains(3F)) throw AssertionError()
|
||||
if (3F !in 3.0F..1.0F != !range1.contains(3F)) throw AssertionError()
|
||||
if (!(3F in 3.0F..1.0F) != !range1.contains(3F)) throw AssertionError()
|
||||
if (!(3F !in 3.0F..1.0F) != range1.contains(3F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3.0F..1.0F != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3.0F..1.0F != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3.0F..1.0F) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3.0F..1.0F) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (3.0 in 3.0F..1.0F != range1.contains(3.0)) throw AssertionError()
|
||||
if (3.0 !in 3.0F..1.0F != !range1.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 in 3.0F..1.0F) != !range1.contains(3.0)) throw AssertionError()
|
||||
if (!(3.0 !in 3.0F..1.0F) != range1.contains(3.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3.0F..1.0F != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3.0F..1.0F != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3.0F..1.0F) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3.0F..1.0F) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (4F in 3.0F..1.0F != range1.contains(4F)) throw AssertionError()
|
||||
if (4F !in 3.0F..1.0F != !range1.contains(4F)) throw AssertionError()
|
||||
if (!(4F in 3.0F..1.0F) != !range1.contains(4F)) throw AssertionError()
|
||||
if (!(4F !in 3.0F..1.0F) != range1.contains(4F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3.0F..1.0F != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3.0F..1.0F != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3.0F..1.0F) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3.0F..1.0F) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (4.0 in 3.0F..1.0F != range1.contains(4.0)) throw AssertionError()
|
||||
if (4.0 !in 3.0F..1.0F != !range1.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 in 3.0F..1.0F) != !range1.contains(4.0)) throw AssertionError()
|
||||
if (!(4.0 !in 3.0F..1.0F) != range1.contains(4.0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3.0F..1.0F != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3.0F..1.0F != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3.0F..1.0F) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3.0F..1.0F) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,191 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||
// !LANGUAGE: +RangeUntilOperator
|
||||
@file:OptIn(ExperimentalStdlibApi::class)
|
||||
|
||||
|
||||
|
||||
val range0 = 1.0F..<3.0F
|
||||
val range1 = 3.0F..<1.0F
|
||||
|
||||
val element0 = -1F
|
||||
val element1 = 0F
|
||||
val element2 = 1F
|
||||
val element3 = 2F
|
||||
val element4 = 3F
|
||||
val element5 = 4F
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (-1F in 1.0F..<3.0F != range0.contains(-1F)) throw AssertionError()
|
||||
if (-1F !in 1.0F..<3.0F != !range0.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F in 1.0F..<3.0F) != !range0.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F !in 1.0F..<3.0F) != range0.contains(-1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1.0F..<3.0F != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1.0F..<3.0F != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1.0F..<3.0F) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1.0F..<3.0F) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (0F in 1.0F..<3.0F != range0.contains(0F)) throw AssertionError()
|
||||
if (0F !in 1.0F..<3.0F != !range0.contains(0F)) throw AssertionError()
|
||||
if (!(0F in 1.0F..<3.0F) != !range0.contains(0F)) throw AssertionError()
|
||||
if (!(0F !in 1.0F..<3.0F) != range0.contains(0F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1.0F..<3.0F != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1.0F..<3.0F != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1.0F..<3.0F) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1.0F..<3.0F) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (1F in 1.0F..<3.0F != range0.contains(1F)) throw AssertionError()
|
||||
if (1F !in 1.0F..<3.0F != !range0.contains(1F)) throw AssertionError()
|
||||
if (!(1F in 1.0F..<3.0F) != !range0.contains(1F)) throw AssertionError()
|
||||
if (!(1F !in 1.0F..<3.0F) != range0.contains(1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1.0F..<3.0F != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1.0F..<3.0F != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1.0F..<3.0F) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1.0F..<3.0F) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (2F in 1.0F..<3.0F != range0.contains(2F)) throw AssertionError()
|
||||
if (2F !in 1.0F..<3.0F != !range0.contains(2F)) throw AssertionError()
|
||||
if (!(2F in 1.0F..<3.0F) != !range0.contains(2F)) throw AssertionError()
|
||||
if (!(2F !in 1.0F..<3.0F) != range0.contains(2F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1.0F..<3.0F != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1.0F..<3.0F != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1.0F..<3.0F) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1.0F..<3.0F) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (3F in 1.0F..<3.0F != range0.contains(3F)) throw AssertionError()
|
||||
if (3F !in 1.0F..<3.0F != !range0.contains(3F)) throw AssertionError()
|
||||
if (!(3F in 1.0F..<3.0F) != !range0.contains(3F)) throw AssertionError()
|
||||
if (!(3F !in 1.0F..<3.0F) != range0.contains(3F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1.0F..<3.0F != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1.0F..<3.0F != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1.0F..<3.0F) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1.0F..<3.0F) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (4F in 1.0F..<3.0F != range0.contains(4F)) throw AssertionError()
|
||||
if (4F !in 1.0F..<3.0F != !range0.contains(4F)) throw AssertionError()
|
||||
if (!(4F in 1.0F..<3.0F) != !range0.contains(4F)) throw AssertionError()
|
||||
if (!(4F !in 1.0F..<3.0F) != range0.contains(4F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1.0F..<3.0F != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1.0F..<3.0F != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1.0F..<3.0F) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1.0F..<3.0F) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (-1F in 3.0F..<1.0F != range1.contains(-1F)) throw AssertionError()
|
||||
if (-1F !in 3.0F..<1.0F != !range1.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F in 3.0F..<1.0F) != !range1.contains(-1F)) throw AssertionError()
|
||||
if (!(-1F !in 3.0F..<1.0F) != range1.contains(-1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3.0F..<1.0F != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3.0F..<1.0F != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3.0F..<1.0F) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3.0F..<1.0F) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (0F in 3.0F..<1.0F != range1.contains(0F)) throw AssertionError()
|
||||
if (0F !in 3.0F..<1.0F != !range1.contains(0F)) throw AssertionError()
|
||||
if (!(0F in 3.0F..<1.0F) != !range1.contains(0F)) throw AssertionError()
|
||||
if (!(0F !in 3.0F..<1.0F) != range1.contains(0F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3.0F..<1.0F != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3.0F..<1.0F != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3.0F..<1.0F) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3.0F..<1.0F) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (1F in 3.0F..<1.0F != range1.contains(1F)) throw AssertionError()
|
||||
if (1F !in 3.0F..<1.0F != !range1.contains(1F)) throw AssertionError()
|
||||
if (!(1F in 3.0F..<1.0F) != !range1.contains(1F)) throw AssertionError()
|
||||
if (!(1F !in 3.0F..<1.0F) != range1.contains(1F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3.0F..<1.0F != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3.0F..<1.0F != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3.0F..<1.0F) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3.0F..<1.0F) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (2F in 3.0F..<1.0F != range1.contains(2F)) throw AssertionError()
|
||||
if (2F !in 3.0F..<1.0F != !range1.contains(2F)) throw AssertionError()
|
||||
if (!(2F in 3.0F..<1.0F) != !range1.contains(2F)) throw AssertionError()
|
||||
if (!(2F !in 3.0F..<1.0F) != range1.contains(2F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3.0F..<1.0F != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3.0F..<1.0F != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3.0F..<1.0F) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3.0F..<1.0F) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (3F in 3.0F..<1.0F != range1.contains(3F)) throw AssertionError()
|
||||
if (3F !in 3.0F..<1.0F != !range1.contains(3F)) throw AssertionError()
|
||||
if (!(3F in 3.0F..<1.0F) != !range1.contains(3F)) throw AssertionError()
|
||||
if (!(3F !in 3.0F..<1.0F) != range1.contains(3F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3.0F..<1.0F != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3.0F..<1.0F != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3.0F..<1.0F) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3.0F..<1.0F) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (4F in 3.0F..<1.0F != range1.contains(4F)) throw AssertionError()
|
||||
if (4F !in 3.0F..<1.0F != !range1.contains(4F)) throw AssertionError()
|
||||
if (!(4F in 3.0F..<1.0F) != !range1.contains(4F)) throw AssertionError()
|
||||
if (!(4F !in 3.0F..<1.0F) != range1.contains(4F)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3.0F..<1.0F != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3.0F..<1.0F != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3.0F..<1.0F) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3.0F..<1.0F) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -3,41 +3,186 @@
|
||||
|
||||
|
||||
|
||||
val range0 = 3 downTo 1
|
||||
val range1 = 1 downTo 3
|
||||
val range0 = 1 downTo 3
|
||||
val range1 = 3 downTo 1
|
||||
|
||||
val element0 = 1
|
||||
val element0 = -1
|
||||
val element1 = 0
|
||||
val element2 = 1
|
||||
val element3 = 2
|
||||
val element4 = 3
|
||||
val element5 = 4
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (1 in 3 downTo 1 != range0.contains(1)) throw AssertionError()
|
||||
if (1 !in 3 downTo 1 != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 in 3 downTo 1) != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 3 downTo 1) != range0.contains(1)) throw AssertionError()
|
||||
if (-1 in 1 downTo 3 != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 1 downTo 3 != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 1 downTo 3) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 1 downTo 3) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3 downTo 1 != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3 downTo 1 != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3 downTo 1) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3 downTo 1) != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 in 1 downTo 3 != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1 downTo 3 != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1 downTo 3) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1 downTo 3) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (0 in 1 downTo 3 != range0.contains(0)) throw AssertionError()
|
||||
if (0 !in 1 downTo 3 != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 in 1 downTo 3) != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 1 downTo 3) != range0.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1 downTo 3 != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1 downTo 3 != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1 downTo 3) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1 downTo 3) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (1 in 1 downTo 3 != range0.contains(1)) throw AssertionError()
|
||||
if (1 !in 1 downTo 3 != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 in 1 downTo 3) != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 1 downTo 3) != range0.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1 downTo 3 != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1 downTo 3 != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1 downTo 3) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1 downTo 3) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (2 in 1 downTo 3 != range0.contains(2)) throw AssertionError()
|
||||
if (2 !in 1 downTo 3 != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 in 1 downTo 3) != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 1 downTo 3) != range0.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1 downTo 3 != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1 downTo 3 != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1 downTo 3) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1 downTo 3) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (3 in 1 downTo 3 != range0.contains(3)) throw AssertionError()
|
||||
if (3 !in 1 downTo 3 != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 in 1 downTo 3) != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 1 downTo 3) != range0.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1 downTo 3 != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1 downTo 3 != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1 downTo 3) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1 downTo 3) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (4 in 1 downTo 3 != range0.contains(4)) throw AssertionError()
|
||||
if (4 !in 1 downTo 3 != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 in 1 downTo 3) != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 1 downTo 3) != range0.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1 downTo 3 != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1 downTo 3 != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1 downTo 3) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1 downTo 3) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (1 in 1 downTo 3 != range1.contains(1)) throw AssertionError()
|
||||
if (1 !in 1 downTo 3 != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 in 1 downTo 3) != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 1 downTo 3) != range1.contains(1)) throw AssertionError()
|
||||
if (-1 in 3 downTo 1 != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 3 downTo 1 != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 3 downTo 1) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 3 downTo 1) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1 downTo 3 != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1 downTo 3 != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1 downTo 3) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1 downTo 3) != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 in 3 downTo 1 != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3 downTo 1 != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3 downTo 1) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3 downTo 1) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (0 in 3 downTo 1 != range1.contains(0)) throw AssertionError()
|
||||
if (0 !in 3 downTo 1 != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 in 3 downTo 1) != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 3 downTo 1) != range1.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3 downTo 1 != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3 downTo 1 != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3 downTo 1) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3 downTo 1) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (1 in 3 downTo 1 != range1.contains(1)) throw AssertionError()
|
||||
if (1 !in 3 downTo 1 != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 in 3 downTo 1) != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 3 downTo 1) != range1.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3 downTo 1 != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3 downTo 1 != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3 downTo 1) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3 downTo 1) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (2 in 3 downTo 1 != range1.contains(2)) throw AssertionError()
|
||||
if (2 !in 3 downTo 1 != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 in 3 downTo 1) != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 3 downTo 1) != range1.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3 downTo 1 != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3 downTo 1 != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3 downTo 1) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3 downTo 1) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (3 in 3 downTo 1 != range1.contains(3)) throw AssertionError()
|
||||
if (3 !in 3 downTo 1 != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 in 3 downTo 1) != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 3 downTo 1) != range1.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3 downTo 1 != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3 downTo 1 != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3 downTo 1) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3 downTo 1) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (4 in 3 downTo 1 != range1.contains(4)) throw AssertionError()
|
||||
if (4 !in 3 downTo 1 != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 in 3 downTo 1) != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 3 downTo 1) != range1.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3 downTo 1 != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3 downTo 1 != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3 downTo 1) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3 downTo 1) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,710 +0,0 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1 .. 3
|
||||
val range1 = 3 .. 1
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = (-1)
|
||||
val element3 = (-1).toLong()
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0.toLong()
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1.toLong()
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2.toLong()
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3.toLong()
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4.toLong()
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR0xE12()
|
||||
testR0xE13()
|
||||
testR0xE14()
|
||||
testR0xE15()
|
||||
testR0xE16()
|
||||
testR0xE17()
|
||||
testR0xE18()
|
||||
testR0xE19()
|
||||
testR0xE20()
|
||||
testR0xE21()
|
||||
testR0xE22()
|
||||
testR0xE23()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
testR1xE12()
|
||||
testR1xE13()
|
||||
testR1xE14()
|
||||
testR1xE15()
|
||||
testR1xE16()
|
||||
testR1xE17()
|
||||
testR1xE18()
|
||||
testR1xE19()
|
||||
testR1xE20()
|
||||
testR1xE21()
|
||||
testR1xE22()
|
||||
testR1xE23()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 1 .. 3 != range0.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 1 .. 3 != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 1 .. 3) != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 1 .. 3) != range0.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1 .. 3 != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1 .. 3 != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1 .. 3) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1 .. 3) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 1 .. 3 != range0.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 1 .. 3 != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 1 .. 3) != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 1 .. 3) != range0.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1 .. 3 != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1 .. 3 != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1 .. 3) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1 .. 3) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in 1 .. 3 != range0.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in 1 .. 3 != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in 1 .. 3) != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in 1 .. 3) != range0.contains((-1))) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1 .. 3 != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1 .. 3 != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1 .. 3) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1 .. 3) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in 1 .. 3 != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in 1 .. 3 != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in 1 .. 3) != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in 1 .. 3) != range0.contains((-1).toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1 .. 3 != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1 .. 3 != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1 .. 3) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1 .. 3) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 1 .. 3 != range0.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 1 .. 3 != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 1 .. 3) != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 1 .. 3) != range0.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1 .. 3 != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1 .. 3 != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1 .. 3) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1 .. 3) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 1 .. 3 != range0.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 1 .. 3 != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 1 .. 3) != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 1 .. 3) != range0.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1 .. 3 != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1 .. 3 != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1 .. 3) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1 .. 3) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 1 .. 3 != range0.contains(0)) throw AssertionError()
|
||||
if (0 !in 1 .. 3 != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 in 1 .. 3) != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 1 .. 3) != range0.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1 .. 3 != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1 .. 3 != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1 .. 3) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1 .. 3) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in 1 .. 3 != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in 1 .. 3 != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in 1 .. 3) != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in 1 .. 3) != range0.contains(0.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1 .. 3 != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1 .. 3 != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1 .. 3) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1 .. 3) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 1 .. 3 != range0.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 1 .. 3 != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 1 .. 3) != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 1 .. 3) != range0.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1 .. 3 != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1 .. 3 != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1 .. 3) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1 .. 3) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 1 .. 3 != range0.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 1 .. 3 != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 1 .. 3) != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 1 .. 3) != range0.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1 .. 3 != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1 .. 3 != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1 .. 3) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1 .. 3) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 1 .. 3 != range0.contains(1)) throw AssertionError()
|
||||
if (1 !in 1 .. 3 != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 in 1 .. 3) != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 1 .. 3) != range0.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1 .. 3 != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1 .. 3 != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1 .. 3) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1 .. 3) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in 1 .. 3 != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in 1 .. 3 != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in 1 .. 3) != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in 1 .. 3) != range0.contains(1.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1 .. 3 != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1 .. 3 != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1 .. 3) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1 .. 3) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 1 .. 3 != range0.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 1 .. 3 != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 1 .. 3) != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 1 .. 3) != range0.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 1 .. 3 != range0.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 1 .. 3 != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 1 .. 3) != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 1 .. 3) != range0.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 1 .. 3 != range0.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 1 .. 3 != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 1 .. 3) != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 1 .. 3) != range0.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 1 .. 3 != range0.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 1 .. 3 != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 1 .. 3) != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 1 .. 3) != range0.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 1 .. 3 != range0.contains(2)) throw AssertionError()
|
||||
if (2 !in 1 .. 3 != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 in 1 .. 3) != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 1 .. 3) != range0.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 1 .. 3 != range0.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 1 .. 3 != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 1 .. 3) != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 1 .. 3) != range0.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in 1 .. 3 != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in 1 .. 3 != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in 1 .. 3) != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in 1 .. 3) != range0.contains(2.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 1 .. 3 != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 1 .. 3 != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 1 .. 3) != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 1 .. 3) != range0.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 1 .. 3 != range0.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 1 .. 3 != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 1 .. 3) != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 1 .. 3) != range0.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 1 .. 3 != range0.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 1 .. 3 != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 1 .. 3) != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 1 .. 3) != range0.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 1 .. 3 != range0.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 1 .. 3 != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 1 .. 3) != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 1 .. 3) != range0.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 1 .. 3 != range0.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 1 .. 3 != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 1 .. 3) != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 1 .. 3) != range0.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 1 .. 3 != range0.contains(3)) throw AssertionError()
|
||||
if (3 !in 1 .. 3 != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 in 1 .. 3) != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 1 .. 3) != range0.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 1 .. 3 != range0.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 1 .. 3 != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 1 .. 3) != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 1 .. 3) != range0.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in 1 .. 3 != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in 1 .. 3 != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in 1 .. 3) != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in 1 .. 3) != range0.contains(3.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 1 .. 3 != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 1 .. 3 != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 1 .. 3) != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 1 .. 3) != range0.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 1 .. 3 != range0.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 1 .. 3 != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 1 .. 3) != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 1 .. 3) != range0.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 1 .. 3 != range0.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 1 .. 3 != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 1 .. 3) != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 1 .. 3) != range0.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 1 .. 3 != range0.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 1 .. 3 != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 1 .. 3) != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 1 .. 3) != range0.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 1 .. 3 != range0.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 1 .. 3 != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 1 .. 3) != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 1 .. 3) != range0.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 1 .. 3 != range0.contains(4)) throw AssertionError()
|
||||
if (4 !in 1 .. 3 != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 in 1 .. 3) != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 1 .. 3) != range0.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 1 .. 3 != range0.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 1 .. 3 != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 1 .. 3) != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 1 .. 3) != range0.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in 1 .. 3 != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in 1 .. 3 != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in 1 .. 3) != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in 1 .. 3) != range0.contains(4.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 1 .. 3 != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 1 .. 3 != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 1 .. 3) != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 1 .. 3) != range0.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 3 .. 1 != range1.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 3 .. 1 != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 3 .. 1) != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 3 .. 1) != range1.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3 .. 1 != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3 .. 1 != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3 .. 1) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3 .. 1) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 3 .. 1 != range1.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 3 .. 1 != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 3 .. 1) != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 3 .. 1) != range1.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3 .. 1 != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3 .. 1 != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3 .. 1) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3 .. 1) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in 3 .. 1 != range1.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in 3 .. 1 != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in 3 .. 1) != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in 3 .. 1) != range1.contains((-1))) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3 .. 1 != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3 .. 1 != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3 .. 1) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3 .. 1) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in 3 .. 1 != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in 3 .. 1 != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in 3 .. 1) != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in 3 .. 1) != range1.contains((-1).toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3 .. 1 != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3 .. 1 != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3 .. 1) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3 .. 1) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 3 .. 1 != range1.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 3 .. 1 != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 3 .. 1) != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 3 .. 1) != range1.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3 .. 1 != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3 .. 1 != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3 .. 1) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3 .. 1) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 3 .. 1 != range1.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 3 .. 1 != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 3 .. 1) != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 3 .. 1) != range1.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3 .. 1 != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3 .. 1 != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3 .. 1) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3 .. 1) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 3 .. 1 != range1.contains(0)) throw AssertionError()
|
||||
if (0 !in 3 .. 1 != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 in 3 .. 1) != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 3 .. 1) != range1.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3 .. 1 != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3 .. 1 != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3 .. 1) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3 .. 1) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in 3 .. 1 != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in 3 .. 1 != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in 3 .. 1) != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in 3 .. 1) != range1.contains(0.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3 .. 1 != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3 .. 1 != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3 .. 1) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3 .. 1) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 3 .. 1 != range1.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 3 .. 1 != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 3 .. 1) != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 3 .. 1) != range1.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3 .. 1 != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3 .. 1 != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3 .. 1) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3 .. 1) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 3 .. 1 != range1.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 3 .. 1 != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 3 .. 1) != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 3 .. 1) != range1.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3 .. 1 != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3 .. 1 != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3 .. 1) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3 .. 1) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 3 .. 1 != range1.contains(1)) throw AssertionError()
|
||||
if (1 !in 3 .. 1 != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 in 3 .. 1) != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 3 .. 1) != range1.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3 .. 1 != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3 .. 1 != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3 .. 1) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3 .. 1) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in 3 .. 1 != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in 3 .. 1 != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in 3 .. 1) != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in 3 .. 1) != range1.contains(1.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3 .. 1 != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3 .. 1 != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3 .. 1) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3 .. 1) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 3 .. 1 != range1.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 3 .. 1 != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 3 .. 1) != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 3 .. 1) != range1.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 3 .. 1 != range1.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 3 .. 1 != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 3 .. 1) != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 3 .. 1) != range1.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 3 .. 1 != range1.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 3 .. 1 != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 3 .. 1) != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 3 .. 1) != range1.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 3 .. 1 != range1.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 3 .. 1 != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 3 .. 1) != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 3 .. 1) != range1.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 3 .. 1 != range1.contains(2)) throw AssertionError()
|
||||
if (2 !in 3 .. 1 != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 in 3 .. 1) != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 3 .. 1) != range1.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 3 .. 1 != range1.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 3 .. 1 != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 3 .. 1) != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 3 .. 1) != range1.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in 3 .. 1 != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in 3 .. 1 != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in 3 .. 1) != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in 3 .. 1) != range1.contains(2.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 3 .. 1 != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 3 .. 1 != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 3 .. 1) != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 3 .. 1) != range1.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 3 .. 1 != range1.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 3 .. 1 != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 3 .. 1) != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 3 .. 1) != range1.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 3 .. 1 != range1.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 3 .. 1 != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 3 .. 1) != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 3 .. 1) != range1.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 3 .. 1 != range1.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 3 .. 1 != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 3 .. 1) != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 3 .. 1) != range1.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 3 .. 1 != range1.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 3 .. 1 != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 3 .. 1) != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 3 .. 1) != range1.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 3 .. 1 != range1.contains(3)) throw AssertionError()
|
||||
if (3 !in 3 .. 1 != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 in 3 .. 1) != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 3 .. 1) != range1.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 3 .. 1 != range1.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 3 .. 1 != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 3 .. 1) != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 3 .. 1) != range1.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in 3 .. 1 != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in 3 .. 1 != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in 3 .. 1) != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in 3 .. 1) != range1.contains(3.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 3 .. 1 != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 3 .. 1 != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 3 .. 1) != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 3 .. 1) != range1.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 3 .. 1 != range1.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 3 .. 1 != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 3 .. 1) != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 3 .. 1) != range1.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 3 .. 1 != range1.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 3 .. 1 != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 3 .. 1) != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 3 .. 1) != range1.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 3 .. 1 != range1.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 3 .. 1 != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 3 .. 1) != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 3 .. 1) != range1.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 3 .. 1 != range1.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 3 .. 1 != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 3 .. 1) != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 3 .. 1) != range1.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 3 .. 1 != range1.contains(4)) throw AssertionError()
|
||||
if (4 !in 3 .. 1 != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 in 3 .. 1) != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 3 .. 1) != range1.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 3 .. 1 != range1.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 3 .. 1 != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 3 .. 1) != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 3 .. 1) != range1.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in 3 .. 1 != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in 3 .. 1 != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in 3 .. 1) != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in 3 .. 1) != range1.contains(4.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 3 .. 1 != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 3 .. 1 != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 3 .. 1) != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 3 .. 1) != range1.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,710 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1..3
|
||||
val range1 = 3..1
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR0xE12()
|
||||
testR0xE13()
|
||||
testR0xE14()
|
||||
testR0xE15()
|
||||
testR0xE16()
|
||||
testR0xE17()
|
||||
testR0xE18()
|
||||
testR0xE19()
|
||||
testR0xE20()
|
||||
testR0xE21()
|
||||
testR0xE22()
|
||||
testR0xE23()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
testR1xE12()
|
||||
testR1xE13()
|
||||
testR1xE14()
|
||||
testR1xE15()
|
||||
testR1xE16()
|
||||
testR1xE17()
|
||||
testR1xE18()
|
||||
testR1xE19()
|
||||
testR1xE20()
|
||||
testR1xE21()
|
||||
testR1xE22()
|
||||
testR1xE23()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 1..3 != range0.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 1..3 != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 1..3) != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 1..3) != range0.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1..3 != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1..3 != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1..3) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1..3) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 1..3 != range0.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 1..3 != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 1..3) != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 1..3) != range0.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1..3 != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1..3 != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1..3) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1..3) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (-1 in 1..3 != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 1..3 != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 1..3) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 1..3) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1..3 != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1..3 != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1..3) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1..3) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (-1L in 1..3 != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 1..3 != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 1..3) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 1..3) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1..3 != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1..3 != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1..3) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1..3) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 1..3 != range0.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 1..3 != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 1..3) != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 1..3) != range0.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1..3 != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1..3 != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1..3) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1..3) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 1..3 != range0.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 1..3 != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 1..3) != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 1..3) != range0.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1..3 != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1..3 != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1..3) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1..3) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 1..3 != range0.contains(0)) throw AssertionError()
|
||||
if (0 !in 1..3 != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 in 1..3) != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 1..3) != range0.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1..3 != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1..3 != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1..3) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1..3) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0L in 1..3 != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in 1..3 != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 1..3) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 1..3) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1..3 != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1..3 != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1..3) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1..3) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 1..3 != range0.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 1..3 != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 1..3) != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 1..3) != range0.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1..3 != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1..3 != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1..3) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1..3) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 1..3 != range0.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 1..3 != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 1..3) != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 1..3) != range0.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1..3 != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1..3 != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1..3) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1..3) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 1..3 != range0.contains(1)) throw AssertionError()
|
||||
if (1 !in 1..3 != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 in 1..3) != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 1..3) != range0.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1..3 != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1..3 != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1..3) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1..3) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1L in 1..3 != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in 1..3 != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 1..3) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 1..3) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1..3 != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1..3 != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1..3) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1..3) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 1..3 != range0.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 1..3 != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 1..3) != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 1..3) != range0.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 1..3 != range0.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 1..3 != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 1..3) != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 1..3) != range0.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 1..3 != range0.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 1..3 != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 1..3) != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 1..3) != range0.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 1..3 != range0.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 1..3 != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 1..3) != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 1..3) != range0.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 1..3 != range0.contains(2)) throw AssertionError()
|
||||
if (2 !in 1..3 != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 in 1..3) != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 1..3) != range0.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 1..3 != range0.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 1..3 != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 1..3) != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 1..3) != range0.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2L in 1..3 != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in 1..3 != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 1..3) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 1..3) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 1..3 != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 1..3 != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 1..3) != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 1..3) != range0.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 1..3 != range0.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 1..3 != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 1..3) != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 1..3) != range0.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 1..3 != range0.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 1..3 != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 1..3) != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 1..3) != range0.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 1..3 != range0.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 1..3 != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 1..3) != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 1..3) != range0.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 1..3 != range0.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 1..3 != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 1..3) != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 1..3) != range0.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 1..3 != range0.contains(3)) throw AssertionError()
|
||||
if (3 !in 1..3 != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 in 1..3) != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 1..3) != range0.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 1..3 != range0.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 1..3 != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 1..3) != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 1..3) != range0.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3L in 1..3 != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in 1..3 != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 1..3) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 1..3) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 1..3 != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 1..3 != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 1..3) != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 1..3) != range0.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 1..3 != range0.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 1..3 != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 1..3) != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 1..3) != range0.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 1..3 != range0.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 1..3 != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 1..3) != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 1..3) != range0.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 1..3 != range0.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 1..3 != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 1..3) != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 1..3) != range0.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 1..3 != range0.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 1..3 != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 1..3) != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 1..3) != range0.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 1..3 != range0.contains(4)) throw AssertionError()
|
||||
if (4 !in 1..3 != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 in 1..3) != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 1..3) != range0.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 1..3 != range0.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 1..3 != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 1..3) != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 1..3) != range0.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4L in 1..3 != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in 1..3 != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 1..3) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 1..3) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 1..3 != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 1..3 != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 1..3) != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 1..3) != range0.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 3..1 != range1.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 3..1 != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 3..1) != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 3..1) != range1.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3..1 != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3..1 != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3..1) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3..1) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 3..1 != range1.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 3..1 != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 3..1) != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 3..1) != range1.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3..1 != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3..1 != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3..1) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3..1) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (-1 in 3..1 != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 3..1 != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 3..1) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 3..1) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3..1 != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3..1 != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3..1) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3..1) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (-1L in 3..1 != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 3..1 != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 3..1) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 3..1) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3..1 != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3..1 != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3..1) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3..1) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 3..1 != range1.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 3..1 != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 3..1) != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 3..1) != range1.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3..1 != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3..1 != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3..1) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3..1) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 3..1 != range1.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 3..1 != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 3..1) != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 3..1) != range1.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3..1 != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3..1 != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3..1) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3..1) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 3..1 != range1.contains(0)) throw AssertionError()
|
||||
if (0 !in 3..1 != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 in 3..1) != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 3..1) != range1.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3..1 != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3..1 != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3..1) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3..1) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0L in 3..1 != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in 3..1 != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 3..1) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 3..1) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3..1 != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3..1 != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3..1) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3..1) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 3..1 != range1.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 3..1 != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 3..1) != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 3..1) != range1.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3..1 != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3..1 != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3..1) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3..1) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 3..1 != range1.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 3..1 != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 3..1) != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 3..1) != range1.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3..1 != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3..1 != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3..1) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3..1) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 3..1 != range1.contains(1)) throw AssertionError()
|
||||
if (1 !in 3..1 != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 in 3..1) != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 3..1) != range1.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3..1 != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3..1 != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3..1) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3..1) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1L in 3..1 != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in 3..1 != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 3..1) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 3..1) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3..1 != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3..1 != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3..1) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3..1) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 3..1 != range1.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 3..1 != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 3..1) != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 3..1) != range1.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 3..1 != range1.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 3..1 != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 3..1) != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 3..1) != range1.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 3..1 != range1.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 3..1 != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 3..1) != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 3..1) != range1.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 3..1 != range1.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 3..1 != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 3..1) != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 3..1) != range1.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 3..1 != range1.contains(2)) throw AssertionError()
|
||||
if (2 !in 3..1 != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 in 3..1) != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 3..1) != range1.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 3..1 != range1.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 3..1 != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 3..1) != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 3..1) != range1.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2L in 3..1 != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in 3..1 != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 3..1) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 3..1) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 3..1 != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 3..1 != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 3..1) != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 3..1) != range1.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 3..1 != range1.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 3..1 != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 3..1) != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 3..1) != range1.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 3..1 != range1.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 3..1 != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 3..1) != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 3..1) != range1.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 3..1 != range1.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 3..1 != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 3..1) != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 3..1) != range1.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 3..1 != range1.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 3..1 != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 3..1) != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 3..1) != range1.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 3..1 != range1.contains(3)) throw AssertionError()
|
||||
if (3 !in 3..1 != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 in 3..1) != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 3..1) != range1.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 3..1 != range1.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 3..1 != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 3..1) != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 3..1) != range1.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3L in 3..1 != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in 3..1 != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 3..1) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 3..1) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 3..1 != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 3..1 != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 3..1) != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 3..1) != range1.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 3..1 != range1.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 3..1 != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 3..1) != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 3..1) != range1.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 3..1 != range1.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 3..1 != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 3..1) != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 3..1) != range1.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 3..1 != range1.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 3..1 != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 3..1) != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 3..1) != range1.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 3..1 != range1.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 3..1 != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 3..1) != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 3..1) != range1.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 3..1 != range1.contains(4)) throw AssertionError()
|
||||
if (4 !in 3..1 != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 in 3..1) != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 3..1) != range1.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 3..1 != range1.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 3..1 != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 3..1) != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 3..1) != range1.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4L in 3..1 != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in 3..1 != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 3..1) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 3..1) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 3..1 != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 3..1 != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 3..1) != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 3..1) != range1.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,713 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||
// !LANGUAGE: +RangeUntilOperator
|
||||
@file:OptIn(ExperimentalStdlibApi::class)
|
||||
|
||||
|
||||
|
||||
val range0 = 1..<3
|
||||
val range1 = 3..<1
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR0xE12()
|
||||
testR0xE13()
|
||||
testR0xE14()
|
||||
testR0xE15()
|
||||
testR0xE16()
|
||||
testR0xE17()
|
||||
testR0xE18()
|
||||
testR0xE19()
|
||||
testR0xE20()
|
||||
testR0xE21()
|
||||
testR0xE22()
|
||||
testR0xE23()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
testR1xE12()
|
||||
testR1xE13()
|
||||
testR1xE14()
|
||||
testR1xE15()
|
||||
testR1xE16()
|
||||
testR1xE17()
|
||||
testR1xE18()
|
||||
testR1xE19()
|
||||
testR1xE20()
|
||||
testR1xE21()
|
||||
testR1xE22()
|
||||
testR1xE23()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 1..<3 != range0.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 1..<3 != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 1..<3) != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 1..<3) != range0.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1..<3 != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1..<3 != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1..<3) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1..<3) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 1..<3 != range0.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 1..<3 != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 1..<3) != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 1..<3) != range0.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1..<3 != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1..<3 != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1..<3) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1..<3) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (-1 in 1..<3 != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 1..<3 != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 1..<3) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 1..<3) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1..<3 != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1..<3 != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1..<3) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1..<3) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (-1L in 1..<3 != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 1..<3 != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 1..<3) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 1..<3) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1..<3 != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1..<3 != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1..<3) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1..<3) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 1..<3 != range0.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 1..<3 != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 1..<3) != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 1..<3) != range0.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1..<3 != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1..<3 != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1..<3) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1..<3) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 1..<3 != range0.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 1..<3 != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 1..<3) != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 1..<3) != range0.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1..<3 != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1..<3 != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1..<3) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1..<3) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 1..<3 != range0.contains(0)) throw AssertionError()
|
||||
if (0 !in 1..<3 != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 in 1..<3) != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 1..<3) != range0.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1..<3 != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1..<3 != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1..<3) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1..<3) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0L in 1..<3 != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in 1..<3 != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 1..<3) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 1..<3) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1..<3 != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1..<3 != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1..<3) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1..<3) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 1..<3 != range0.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 1..<3 != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 1..<3) != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 1..<3) != range0.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1..<3 != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1..<3 != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1..<3) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1..<3) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 1..<3 != range0.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 1..<3 != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 1..<3) != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 1..<3) != range0.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1..<3 != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1..<3 != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1..<3) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1..<3) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 1..<3 != range0.contains(1)) throw AssertionError()
|
||||
if (1 !in 1..<3 != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 in 1..<3) != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 1..<3) != range0.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1..<3 != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1..<3 != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1..<3) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1..<3) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1L in 1..<3 != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in 1..<3 != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 1..<3) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 1..<3) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1..<3 != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1..<3 != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1..<3) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1..<3) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 1..<3 != range0.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 1..<3 != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 1..<3) != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 1..<3) != range0.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 1..<3 != range0.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 1..<3 != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 1..<3) != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 1..<3) != range0.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 1..<3 != range0.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 1..<3 != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 1..<3) != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 1..<3) != range0.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 1..<3 != range0.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 1..<3 != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 1..<3) != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 1..<3) != range0.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 1..<3 != range0.contains(2)) throw AssertionError()
|
||||
if (2 !in 1..<3 != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 in 1..<3) != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 1..<3) != range0.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 1..<3 != range0.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 1..<3 != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 1..<3) != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 1..<3) != range0.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2L in 1..<3 != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in 1..<3 != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 1..<3) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 1..<3) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 1..<3 != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 1..<3 != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 1..<3) != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 1..<3) != range0.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 1..<3 != range0.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 1..<3 != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 1..<3) != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 1..<3) != range0.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 1..<3 != range0.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 1..<3 != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 1..<3) != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 1..<3) != range0.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 1..<3 != range0.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 1..<3 != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 1..<3) != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 1..<3) != range0.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 1..<3 != range0.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 1..<3 != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 1..<3) != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 1..<3) != range0.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 1..<3 != range0.contains(3)) throw AssertionError()
|
||||
if (3 !in 1..<3 != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 in 1..<3) != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 1..<3) != range0.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 1..<3 != range0.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 1..<3 != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 1..<3) != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 1..<3) != range0.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3L in 1..<3 != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in 1..<3 != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 1..<3) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 1..<3) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 1..<3 != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 1..<3 != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 1..<3) != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 1..<3) != range0.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 1..<3 != range0.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 1..<3 != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 1..<3) != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 1..<3) != range0.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 1..<3 != range0.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 1..<3 != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 1..<3) != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 1..<3) != range0.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 1..<3 != range0.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 1..<3 != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 1..<3) != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 1..<3) != range0.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 1..<3 != range0.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 1..<3 != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 1..<3) != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 1..<3) != range0.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 1..<3 != range0.contains(4)) throw AssertionError()
|
||||
if (4 !in 1..<3 != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 in 1..<3) != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 1..<3) != range0.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 1..<3 != range0.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 1..<3 != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 1..<3) != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 1..<3) != range0.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4L in 1..<3 != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in 1..<3 != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 1..<3) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 1..<3) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 1..<3 != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 1..<3 != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 1..<3) != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 1..<3) != range0.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 3..<1 != range1.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 3..<1 != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 3..<1) != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 3..<1) != range1.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3..<1 != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3..<1 != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3..<1) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3..<1) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 3..<1 != range1.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 3..<1 != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 3..<1) != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 3..<1) != range1.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3..<1 != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3..<1 != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3..<1) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3..<1) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (-1 in 3..<1 != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 3..<1 != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 3..<1) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 3..<1) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3..<1 != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3..<1 != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3..<1) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3..<1) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (-1L in 3..<1 != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 3..<1 != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 3..<1) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 3..<1) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3..<1 != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3..<1 != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3..<1) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3..<1) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 3..<1 != range1.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 3..<1 != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 3..<1) != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 3..<1) != range1.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3..<1 != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3..<1 != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3..<1) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3..<1) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 3..<1 != range1.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 3..<1 != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 3..<1) != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 3..<1) != range1.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3..<1 != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3..<1 != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3..<1) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3..<1) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 3..<1 != range1.contains(0)) throw AssertionError()
|
||||
if (0 !in 3..<1 != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 in 3..<1) != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 3..<1) != range1.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3..<1 != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3..<1 != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3..<1) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3..<1) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0L in 3..<1 != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in 3..<1 != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 3..<1) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 3..<1) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3..<1 != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3..<1 != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3..<1) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3..<1) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 3..<1 != range1.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 3..<1 != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 3..<1) != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 3..<1) != range1.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3..<1 != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3..<1 != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3..<1) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3..<1) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 3..<1 != range1.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 3..<1 != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 3..<1) != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 3..<1) != range1.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3..<1 != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3..<1 != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3..<1) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3..<1) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 3..<1 != range1.contains(1)) throw AssertionError()
|
||||
if (1 !in 3..<1 != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 in 3..<1) != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 3..<1) != range1.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3..<1 != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3..<1 != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3..<1) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3..<1) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1L in 3..<1 != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in 3..<1 != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 3..<1) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 3..<1) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3..<1 != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3..<1 != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3..<1) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3..<1) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 3..<1 != range1.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 3..<1 != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 3..<1) != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 3..<1) != range1.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 3..<1 != range1.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 3..<1 != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 3..<1) != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 3..<1) != range1.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 3..<1 != range1.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 3..<1 != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 3..<1) != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 3..<1) != range1.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 3..<1 != range1.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 3..<1 != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 3..<1) != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 3..<1) != range1.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 3..<1 != range1.contains(2)) throw AssertionError()
|
||||
if (2 !in 3..<1 != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 in 3..<1) != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 3..<1) != range1.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 3..<1 != range1.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 3..<1 != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 3..<1) != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 3..<1) != range1.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2L in 3..<1 != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in 3..<1 != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 3..<1) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 3..<1) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 3..<1 != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 3..<1 != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 3..<1) != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 3..<1) != range1.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 3..<1 != range1.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 3..<1 != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 3..<1) != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 3..<1) != range1.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 3..<1 != range1.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 3..<1 != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 3..<1) != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 3..<1) != range1.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 3..<1 != range1.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 3..<1 != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 3..<1) != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 3..<1) != range1.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 3..<1 != range1.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 3..<1 != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 3..<1) != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 3..<1) != range1.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 3..<1 != range1.contains(3)) throw AssertionError()
|
||||
if (3 !in 3..<1 != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 in 3..<1) != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 3..<1) != range1.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 3..<1 != range1.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 3..<1 != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 3..<1) != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 3..<1) != range1.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3L in 3..<1 != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in 3..<1 != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 3..<1) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 3..<1) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 3..<1 != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 3..<1 != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 3..<1) != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 3..<1) != range1.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 3..<1 != range1.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 3..<1 != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 3..<1) != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 3..<1) != range1.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 3..<1 != range1.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 3..<1 != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 3..<1) != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 3..<1) != range1.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 3..<1 != range1.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 3..<1 != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 3..<1) != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 3..<1) != range1.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 3..<1 != range1.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 3..<1 != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 3..<1) != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 3..<1) != range1.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 3..<1 != range1.contains(4)) throw AssertionError()
|
||||
if (4 !in 3..<1 != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 in 3..<1) != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 3..<1) != range1.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 3..<1 != range1.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 3..<1 != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 3..<1) != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 3..<1) != range1.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4L in 3..<1 != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in 3..<1 != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 3..<1) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 3..<1) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 3..<1 != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 3..<1 != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 3..<1) != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 3..<1) != range1.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -8,28 +8,28 @@ val range1 = 3 until 1
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = (-1)
|
||||
val element3 = (-1).toLong()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0.toLong()
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1.toLong()
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2.toLong()
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3.toLong()
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4.toLong()
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
@@ -111,10 +111,10 @@ fun testR0xE1() {
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in 1 until 3 != range0.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in 1 until 3 != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in 1 until 3) != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in 1 until 3) != range0.contains((-1))) throw AssertionError()
|
||||
if (-1 in 1 until 3 != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 1 until 3 != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 1 until 3) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 1 until 3) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1 until 3 != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1 until 3 != !range0.contains(element2)) throw AssertionError()
|
||||
@@ -124,10 +124,10 @@ fun testR0xE2() {
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in 1 until 3 != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in 1 until 3 != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in 1 until 3) != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in 1 until 3) != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in 1 until 3 != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 1 until 3 != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 1 until 3) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 1 until 3) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1 until 3 != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1 until 3 != !range0.contains(element3)) throw AssertionError()
|
||||
@@ -176,10 +176,10 @@ fun testR0xE6() {
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in 1 until 3 != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in 1 until 3 != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in 1 until 3) != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in 1 until 3) != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in 1 until 3 != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in 1 until 3 != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 1 until 3) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 1 until 3) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1 until 3 != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1 until 3 != !range0.contains(element7)) throw AssertionError()
|
||||
@@ -228,10 +228,10 @@ fun testR0xE10() {
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in 1 until 3 != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in 1 until 3 != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in 1 until 3) != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in 1 until 3) != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in 1 until 3 != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in 1 until 3 != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 1 until 3) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 1 until 3) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1 until 3 != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1 until 3 != !range0.contains(element11)) throw AssertionError()
|
||||
@@ -280,10 +280,10 @@ fun testR0xE14() {
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in 1 until 3 != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in 1 until 3 != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in 1 until 3) != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in 1 until 3) != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in 1 until 3 != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in 1 until 3 != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 1 until 3) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 1 until 3) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 1 until 3 != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 1 until 3 != !range0.contains(element15)) throw AssertionError()
|
||||
@@ -332,10 +332,10 @@ fun testR0xE18() {
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in 1 until 3 != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in 1 until 3 != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in 1 until 3) != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in 1 until 3) != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in 1 until 3 != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in 1 until 3 != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 1 until 3) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 1 until 3) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 1 until 3 != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 1 until 3 != !range0.contains(element19)) throw AssertionError()
|
||||
@@ -384,10 +384,10 @@ fun testR0xE22() {
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in 1 until 3 != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in 1 until 3 != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in 1 until 3) != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in 1 until 3) != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in 1 until 3 != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in 1 until 3 != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 1 until 3) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 1 until 3) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 1 until 3 != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 1 until 3 != !range0.contains(element23)) throw AssertionError()
|
||||
@@ -423,10 +423,10 @@ fun testR1xE1() {
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in 3 until 1 != range1.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in 3 until 1 != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in 3 until 1) != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in 3 until 1) != range1.contains((-1))) throw AssertionError()
|
||||
if (-1 in 3 until 1 != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 3 until 1 != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 3 until 1) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 3 until 1) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3 until 1 != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3 until 1 != !range1.contains(element2)) throw AssertionError()
|
||||
@@ -436,10 +436,10 @@ fun testR1xE2() {
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in 3 until 1 != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in 3 until 1 != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in 3 until 1) != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in 3 until 1) != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in 3 until 1 != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 3 until 1 != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 3 until 1) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 3 until 1) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3 until 1 != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3 until 1 != !range1.contains(element3)) throw AssertionError()
|
||||
@@ -488,10 +488,10 @@ fun testR1xE6() {
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in 3 until 1 != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in 3 until 1 != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in 3 until 1) != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in 3 until 1) != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in 3 until 1 != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in 3 until 1 != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 3 until 1) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 3 until 1) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3 until 1 != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3 until 1 != !range1.contains(element7)) throw AssertionError()
|
||||
@@ -540,10 +540,10 @@ fun testR1xE10() {
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in 3 until 1 != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in 3 until 1 != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in 3 until 1) != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in 3 until 1) != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in 3 until 1 != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in 3 until 1 != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 3 until 1) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 3 until 1) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3 until 1 != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3 until 1 != !range1.contains(element11)) throw AssertionError()
|
||||
@@ -592,10 +592,10 @@ fun testR1xE14() {
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in 3 until 1 != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in 3 until 1 != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in 3 until 1) != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in 3 until 1) != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in 3 until 1 != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in 3 until 1 != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 3 until 1) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 3 until 1) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 3 until 1 != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 3 until 1 != !range1.contains(element15)) throw AssertionError()
|
||||
@@ -644,10 +644,10 @@ fun testR1xE18() {
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in 3 until 1 != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in 3 until 1 != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in 3 until 1) != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in 3 until 1) != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in 3 until 1 != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in 3 until 1 != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 3 until 1) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 3 until 1) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 3 until 1 != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 3 until 1 != !range1.contains(element19)) throw AssertionError()
|
||||
@@ -696,10 +696,10 @@ fun testR1xE22() {
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in 3 until 1 != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in 3 until 1 != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in 3 until 1) != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in 3 until 1) != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in 3 until 1 != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in 3 until 1 != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 3 until 1) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 3 until 1) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 3 until 1 != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 3 until 1 != !range1.contains(element23)) throw AssertionError()
|
||||
|
||||
@@ -3,41 +3,186 @@
|
||||
|
||||
|
||||
|
||||
val range0 = 3L downTo 1L
|
||||
val range1 = 1L downTo 3L
|
||||
val range0 = 1L downTo 3L
|
||||
val range1 = 3L downTo 1L
|
||||
|
||||
val element0 = 1L
|
||||
val element0 = -1L
|
||||
val element1 = 0L
|
||||
val element2 = 1L
|
||||
val element3 = 2L
|
||||
val element4 = 3L
|
||||
val element5 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (1L in 3L downTo 1L != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in 3L downTo 1L != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 3L downTo 1L) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 3L downTo 1L) != range0.contains(1L)) throw AssertionError()
|
||||
if (-1L in 1L downTo 3L != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 1L downTo 3L != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 1L downTo 3L) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 1L downTo 3L) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3L downTo 1L != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3L downTo 1L != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3L downTo 1L) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3L downTo 1L) != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 in 1L downTo 3L != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1L downTo 3L != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1L downTo 3L) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1L downTo 3L) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (0L in 1L downTo 3L != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in 1L downTo 3L != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 1L downTo 3L) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 1L downTo 3L) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1L downTo 3L != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1L downTo 3L != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1L downTo 3L) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1L downTo 3L) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (1L in 1L downTo 3L != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in 1L downTo 3L != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 1L downTo 3L) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 1L downTo 3L) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1L downTo 3L != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1L downTo 3L != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1L downTo 3L) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1L downTo 3L) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (2L in 1L downTo 3L != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in 1L downTo 3L != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 1L downTo 3L) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 1L downTo 3L) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1L downTo 3L != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1L downTo 3L != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1L downTo 3L) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1L downTo 3L) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (3L in 1L downTo 3L != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in 1L downTo 3L != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 1L downTo 3L) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 1L downTo 3L) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1L downTo 3L != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1L downTo 3L != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1L downTo 3L) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1L downTo 3L) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (4L in 1L downTo 3L != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in 1L downTo 3L != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 1L downTo 3L) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 1L downTo 3L) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1L downTo 3L != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1L downTo 3L != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1L downTo 3L) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1L downTo 3L) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (1L in 1L downTo 3L != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in 1L downTo 3L != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 1L downTo 3L) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 1L downTo 3L) != range1.contains(1L)) throw AssertionError()
|
||||
if (-1L in 3L downTo 1L != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 3L downTo 1L != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 3L downTo 1L) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 3L downTo 1L) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1L downTo 3L != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1L downTo 3L != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1L downTo 3L) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1L downTo 3L) != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 in 3L downTo 1L != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3L downTo 1L != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3L downTo 1L) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3L downTo 1L) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (0L in 3L downTo 1L != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in 3L downTo 1L != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 3L downTo 1L) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 3L downTo 1L) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3L downTo 1L != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3L downTo 1L != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3L downTo 1L) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3L downTo 1L) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (1L in 3L downTo 1L != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in 3L downTo 1L != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 3L downTo 1L) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 3L downTo 1L) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3L downTo 1L != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3L downTo 1L != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3L downTo 1L) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3L downTo 1L) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (2L in 3L downTo 1L != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in 3L downTo 1L != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 3L downTo 1L) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 3L downTo 1L) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3L downTo 1L != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3L downTo 1L != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3L downTo 1L) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3L downTo 1L) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (3L in 3L downTo 1L != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in 3L downTo 1L != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 3L downTo 1L) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 3L downTo 1L) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3L downTo 1L != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3L downTo 1L != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3L downTo 1L) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3L downTo 1L) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (4L in 3L downTo 1L != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in 3L downTo 1L != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 3L downTo 1L) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 3L downTo 1L) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3L downTo 1L != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3L downTo 1L != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3L downTo 1L) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3L downTo 1L) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,710 +0,0 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1L .. 3L
|
||||
val range1 = 3L .. 1L
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = (-1)
|
||||
val element3 = (-1).toLong()
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0.toLong()
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1.toLong()
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2.toLong()
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3.toLong()
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4.toLong()
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR0xE12()
|
||||
testR0xE13()
|
||||
testR0xE14()
|
||||
testR0xE15()
|
||||
testR0xE16()
|
||||
testR0xE17()
|
||||
testR0xE18()
|
||||
testR0xE19()
|
||||
testR0xE20()
|
||||
testR0xE21()
|
||||
testR0xE22()
|
||||
testR0xE23()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
testR1xE12()
|
||||
testR1xE13()
|
||||
testR1xE14()
|
||||
testR1xE15()
|
||||
testR1xE16()
|
||||
testR1xE17()
|
||||
testR1xE18()
|
||||
testR1xE19()
|
||||
testR1xE20()
|
||||
testR1xE21()
|
||||
testR1xE22()
|
||||
testR1xE23()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 1L .. 3L != range0.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 1L .. 3L != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 1L .. 3L) != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 1L .. 3L) != range0.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1L .. 3L != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1L .. 3L != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1L .. 3L) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1L .. 3L) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 1L .. 3L != range0.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 1L .. 3L != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 1L .. 3L) != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 1L .. 3L) != range0.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1L .. 3L != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1L .. 3L != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1L .. 3L) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1L .. 3L) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in 1L .. 3L != range0.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in 1L .. 3L != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in 1L .. 3L) != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in 1L .. 3L) != range0.contains((-1))) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1L .. 3L != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1L .. 3L != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1L .. 3L) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1L .. 3L) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in 1L .. 3L != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in 1L .. 3L != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in 1L .. 3L) != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in 1L .. 3L) != range0.contains((-1).toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1L .. 3L != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1L .. 3L != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1L .. 3L) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1L .. 3L) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 1L .. 3L != range0.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 1L .. 3L != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 1L .. 3L) != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 1L .. 3L) != range0.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1L .. 3L != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1L .. 3L != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1L .. 3L) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1L .. 3L) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 1L .. 3L != range0.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 1L .. 3L != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 1L .. 3L) != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 1L .. 3L) != range0.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1L .. 3L != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1L .. 3L != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1L .. 3L) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1L .. 3L) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 1L .. 3L != range0.contains(0)) throw AssertionError()
|
||||
if (0 !in 1L .. 3L != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 in 1L .. 3L) != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 1L .. 3L) != range0.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1L .. 3L != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1L .. 3L != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1L .. 3L) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1L .. 3L) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in 1L .. 3L != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in 1L .. 3L != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in 1L .. 3L) != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in 1L .. 3L) != range0.contains(0.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1L .. 3L != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1L .. 3L != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1L .. 3L) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1L .. 3L) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 1L .. 3L != range0.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 1L .. 3L != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 1L .. 3L) != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 1L .. 3L) != range0.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1L .. 3L != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1L .. 3L != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1L .. 3L) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1L .. 3L) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 1L .. 3L != range0.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 1L .. 3L != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 1L .. 3L) != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 1L .. 3L) != range0.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1L .. 3L != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1L .. 3L != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1L .. 3L) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1L .. 3L) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 1L .. 3L != range0.contains(1)) throw AssertionError()
|
||||
if (1 !in 1L .. 3L != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 in 1L .. 3L) != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 1L .. 3L) != range0.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1L .. 3L != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1L .. 3L != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1L .. 3L) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1L .. 3L) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in 1L .. 3L != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in 1L .. 3L != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in 1L .. 3L) != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in 1L .. 3L) != range0.contains(1.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1L .. 3L != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1L .. 3L != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1L .. 3L) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1L .. 3L) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 1L .. 3L != range0.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 1L .. 3L != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 1L .. 3L) != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 1L .. 3L) != range0.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 1L .. 3L != range0.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 1L .. 3L != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 1L .. 3L) != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 1L .. 3L) != range0.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 1L .. 3L != range0.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 1L .. 3L != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 1L .. 3L) != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 1L .. 3L) != range0.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 1L .. 3L != range0.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 1L .. 3L != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 1L .. 3L) != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 1L .. 3L) != range0.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 1L .. 3L != range0.contains(2)) throw AssertionError()
|
||||
if (2 !in 1L .. 3L != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 in 1L .. 3L) != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 1L .. 3L) != range0.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 1L .. 3L != range0.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 1L .. 3L != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 1L .. 3L) != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 1L .. 3L) != range0.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in 1L .. 3L != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in 1L .. 3L != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in 1L .. 3L) != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in 1L .. 3L) != range0.contains(2.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 1L .. 3L != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 1L .. 3L != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 1L .. 3L) != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 1L .. 3L) != range0.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 1L .. 3L != range0.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 1L .. 3L != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 1L .. 3L) != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 1L .. 3L) != range0.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 1L .. 3L != range0.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 1L .. 3L != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 1L .. 3L) != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 1L .. 3L) != range0.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 1L .. 3L != range0.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 1L .. 3L != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 1L .. 3L) != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 1L .. 3L) != range0.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 1L .. 3L != range0.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 1L .. 3L != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 1L .. 3L) != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 1L .. 3L) != range0.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 1L .. 3L != range0.contains(3)) throw AssertionError()
|
||||
if (3 !in 1L .. 3L != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 in 1L .. 3L) != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 1L .. 3L) != range0.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 1L .. 3L != range0.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 1L .. 3L != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 1L .. 3L) != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 1L .. 3L) != range0.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in 1L .. 3L != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in 1L .. 3L != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in 1L .. 3L) != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in 1L .. 3L) != range0.contains(3.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 1L .. 3L != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 1L .. 3L != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 1L .. 3L) != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 1L .. 3L) != range0.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 1L .. 3L != range0.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 1L .. 3L != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 1L .. 3L) != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 1L .. 3L) != range0.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 1L .. 3L != range0.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 1L .. 3L != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 1L .. 3L) != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 1L .. 3L) != range0.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 1L .. 3L != range0.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 1L .. 3L != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 1L .. 3L) != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 1L .. 3L) != range0.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 1L .. 3L != range0.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 1L .. 3L != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 1L .. 3L) != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 1L .. 3L) != range0.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 1L .. 3L != range0.contains(4)) throw AssertionError()
|
||||
if (4 !in 1L .. 3L != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 in 1L .. 3L) != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 1L .. 3L) != range0.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 1L .. 3L != range0.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 1L .. 3L != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 1L .. 3L) != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 1L .. 3L) != range0.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in 1L .. 3L != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in 1L .. 3L != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in 1L .. 3L) != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in 1L .. 3L) != range0.contains(4.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 1L .. 3L != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 1L .. 3L != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 1L .. 3L) != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 1L .. 3L) != range0.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 3L .. 1L != range1.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 3L .. 1L != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 3L .. 1L) != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 3L .. 1L) != range1.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3L .. 1L != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3L .. 1L != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3L .. 1L) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3L .. 1L) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 3L .. 1L != range1.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 3L .. 1L != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 3L .. 1L) != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 3L .. 1L) != range1.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3L .. 1L != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3L .. 1L != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3L .. 1L) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3L .. 1L) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in 3L .. 1L != range1.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in 3L .. 1L != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in 3L .. 1L) != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in 3L .. 1L) != range1.contains((-1))) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3L .. 1L != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3L .. 1L != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3L .. 1L) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3L .. 1L) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in 3L .. 1L != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in 3L .. 1L != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in 3L .. 1L) != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in 3L .. 1L) != range1.contains((-1).toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3L .. 1L != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3L .. 1L != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3L .. 1L) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3L .. 1L) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 3L .. 1L != range1.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 3L .. 1L != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 3L .. 1L) != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 3L .. 1L) != range1.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3L .. 1L != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3L .. 1L != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3L .. 1L) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3L .. 1L) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 3L .. 1L != range1.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 3L .. 1L != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 3L .. 1L) != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 3L .. 1L) != range1.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3L .. 1L != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3L .. 1L != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3L .. 1L) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3L .. 1L) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 3L .. 1L != range1.contains(0)) throw AssertionError()
|
||||
if (0 !in 3L .. 1L != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 in 3L .. 1L) != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 3L .. 1L) != range1.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3L .. 1L != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3L .. 1L != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3L .. 1L) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3L .. 1L) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in 3L .. 1L != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in 3L .. 1L != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in 3L .. 1L) != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in 3L .. 1L) != range1.contains(0.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3L .. 1L != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3L .. 1L != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3L .. 1L) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3L .. 1L) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 3L .. 1L != range1.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 3L .. 1L != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 3L .. 1L) != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 3L .. 1L) != range1.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3L .. 1L != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3L .. 1L != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3L .. 1L) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3L .. 1L) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 3L .. 1L != range1.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 3L .. 1L != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 3L .. 1L) != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 3L .. 1L) != range1.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3L .. 1L != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3L .. 1L != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3L .. 1L) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3L .. 1L) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 3L .. 1L != range1.contains(1)) throw AssertionError()
|
||||
if (1 !in 3L .. 1L != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 in 3L .. 1L) != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 3L .. 1L) != range1.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3L .. 1L != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3L .. 1L != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3L .. 1L) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3L .. 1L) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in 3L .. 1L != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in 3L .. 1L != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in 3L .. 1L) != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in 3L .. 1L) != range1.contains(1.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3L .. 1L != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3L .. 1L != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3L .. 1L) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3L .. 1L) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 3L .. 1L != range1.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 3L .. 1L != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 3L .. 1L) != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 3L .. 1L) != range1.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 3L .. 1L != range1.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 3L .. 1L != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 3L .. 1L) != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 3L .. 1L) != range1.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 3L .. 1L != range1.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 3L .. 1L != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 3L .. 1L) != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 3L .. 1L) != range1.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 3L .. 1L != range1.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 3L .. 1L != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 3L .. 1L) != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 3L .. 1L) != range1.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 3L .. 1L != range1.contains(2)) throw AssertionError()
|
||||
if (2 !in 3L .. 1L != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 in 3L .. 1L) != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 3L .. 1L) != range1.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 3L .. 1L != range1.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 3L .. 1L != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 3L .. 1L) != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 3L .. 1L) != range1.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in 3L .. 1L != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in 3L .. 1L != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in 3L .. 1L) != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in 3L .. 1L) != range1.contains(2.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 3L .. 1L != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 3L .. 1L != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 3L .. 1L) != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 3L .. 1L) != range1.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 3L .. 1L != range1.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 3L .. 1L != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 3L .. 1L) != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 3L .. 1L) != range1.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 3L .. 1L != range1.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 3L .. 1L != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 3L .. 1L) != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 3L .. 1L) != range1.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 3L .. 1L != range1.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 3L .. 1L != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 3L .. 1L) != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 3L .. 1L) != range1.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 3L .. 1L != range1.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 3L .. 1L != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 3L .. 1L) != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 3L .. 1L) != range1.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 3L .. 1L != range1.contains(3)) throw AssertionError()
|
||||
if (3 !in 3L .. 1L != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 in 3L .. 1L) != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 3L .. 1L) != range1.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 3L .. 1L != range1.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 3L .. 1L != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 3L .. 1L) != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 3L .. 1L) != range1.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in 3L .. 1L != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in 3L .. 1L != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in 3L .. 1L) != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in 3L .. 1L) != range1.contains(3.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 3L .. 1L != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 3L .. 1L != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 3L .. 1L) != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 3L .. 1L) != range1.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 3L .. 1L != range1.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 3L .. 1L != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 3L .. 1L) != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 3L .. 1L) != range1.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 3L .. 1L != range1.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 3L .. 1L != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 3L .. 1L) != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 3L .. 1L) != range1.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 3L .. 1L != range1.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 3L .. 1L != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 3L .. 1L) != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 3L .. 1L) != range1.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 3L .. 1L != range1.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 3L .. 1L != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 3L .. 1L) != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 3L .. 1L) != range1.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 3L .. 1L != range1.contains(4)) throw AssertionError()
|
||||
if (4 !in 3L .. 1L != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 in 3L .. 1L) != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 3L .. 1L) != range1.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 3L .. 1L != range1.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 3L .. 1L != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 3L .. 1L) != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 3L .. 1L) != range1.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in 3L .. 1L != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in 3L .. 1L != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in 3L .. 1L) != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in 3L .. 1L) != range1.contains(4.toLong())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 3L .. 1L != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 3L .. 1L != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 3L .. 1L) != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 3L .. 1L) != range1.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,710 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1L..3L
|
||||
val range1 = 3L..1L
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR0xE12()
|
||||
testR0xE13()
|
||||
testR0xE14()
|
||||
testR0xE15()
|
||||
testR0xE16()
|
||||
testR0xE17()
|
||||
testR0xE18()
|
||||
testR0xE19()
|
||||
testR0xE20()
|
||||
testR0xE21()
|
||||
testR0xE22()
|
||||
testR0xE23()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
testR1xE12()
|
||||
testR1xE13()
|
||||
testR1xE14()
|
||||
testR1xE15()
|
||||
testR1xE16()
|
||||
testR1xE17()
|
||||
testR1xE18()
|
||||
testR1xE19()
|
||||
testR1xE20()
|
||||
testR1xE21()
|
||||
testR1xE22()
|
||||
testR1xE23()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 1L..3L != range0.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 1L..3L != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 1L..3L) != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 1L..3L) != range0.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1L..3L != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1L..3L != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1L..3L) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1L..3L) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 1L..3L != range0.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 1L..3L != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 1L..3L) != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 1L..3L) != range0.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1L..3L != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1L..3L != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1L..3L) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1L..3L) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (-1 in 1L..3L != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 1L..3L != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 1L..3L) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 1L..3L) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1L..3L != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1L..3L != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1L..3L) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1L..3L) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (-1L in 1L..3L != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 1L..3L != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 1L..3L) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 1L..3L) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1L..3L != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1L..3L != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1L..3L) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1L..3L) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 1L..3L != range0.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 1L..3L != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 1L..3L) != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 1L..3L) != range0.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1L..3L != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1L..3L != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1L..3L) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1L..3L) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 1L..3L != range0.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 1L..3L != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 1L..3L) != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 1L..3L) != range0.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1L..3L != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1L..3L != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1L..3L) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1L..3L) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 1L..3L != range0.contains(0)) throw AssertionError()
|
||||
if (0 !in 1L..3L != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 in 1L..3L) != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 1L..3L) != range0.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1L..3L != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1L..3L != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1L..3L) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1L..3L) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0L in 1L..3L != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in 1L..3L != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 1L..3L) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 1L..3L) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1L..3L != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1L..3L != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1L..3L) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1L..3L) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 1L..3L != range0.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 1L..3L != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 1L..3L) != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 1L..3L) != range0.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1L..3L != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1L..3L != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1L..3L) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1L..3L) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 1L..3L != range0.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 1L..3L != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 1L..3L) != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 1L..3L) != range0.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1L..3L != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1L..3L != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1L..3L) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1L..3L) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 1L..3L != range0.contains(1)) throw AssertionError()
|
||||
if (1 !in 1L..3L != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 in 1L..3L) != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 1L..3L) != range0.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1L..3L != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1L..3L != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1L..3L) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1L..3L) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1L in 1L..3L != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in 1L..3L != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 1L..3L) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 1L..3L) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1L..3L != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1L..3L != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1L..3L) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1L..3L) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 1L..3L != range0.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 1L..3L != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 1L..3L) != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 1L..3L) != range0.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 1L..3L != range0.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 1L..3L != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 1L..3L) != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 1L..3L) != range0.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 1L..3L != range0.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 1L..3L != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 1L..3L) != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 1L..3L) != range0.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 1L..3L != range0.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 1L..3L != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 1L..3L) != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 1L..3L) != range0.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 1L..3L != range0.contains(2)) throw AssertionError()
|
||||
if (2 !in 1L..3L != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 in 1L..3L) != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 1L..3L) != range0.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 1L..3L != range0.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 1L..3L != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 1L..3L) != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 1L..3L) != range0.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2L in 1L..3L != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in 1L..3L != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 1L..3L) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 1L..3L) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 1L..3L != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 1L..3L != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 1L..3L) != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 1L..3L) != range0.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 1L..3L != range0.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 1L..3L != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 1L..3L) != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 1L..3L) != range0.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 1L..3L != range0.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 1L..3L != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 1L..3L) != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 1L..3L) != range0.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 1L..3L != range0.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 1L..3L != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 1L..3L) != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 1L..3L) != range0.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 1L..3L != range0.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 1L..3L != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 1L..3L) != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 1L..3L) != range0.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 1L..3L != range0.contains(3)) throw AssertionError()
|
||||
if (3 !in 1L..3L != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 in 1L..3L) != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 1L..3L) != range0.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 1L..3L != range0.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 1L..3L != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 1L..3L) != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 1L..3L) != range0.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3L in 1L..3L != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in 1L..3L != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 1L..3L) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 1L..3L) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 1L..3L != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 1L..3L != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 1L..3L) != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 1L..3L) != range0.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 1L..3L != range0.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 1L..3L != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 1L..3L) != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 1L..3L) != range0.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 1L..3L != range0.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 1L..3L != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 1L..3L) != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 1L..3L) != range0.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 1L..3L != range0.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 1L..3L != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 1L..3L) != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 1L..3L) != range0.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 1L..3L != range0.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 1L..3L != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 1L..3L) != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 1L..3L) != range0.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 1L..3L != range0.contains(4)) throw AssertionError()
|
||||
if (4 !in 1L..3L != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 in 1L..3L) != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 1L..3L) != range0.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 1L..3L != range0.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 1L..3L != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 1L..3L) != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 1L..3L) != range0.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4L in 1L..3L != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in 1L..3L != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 1L..3L) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 1L..3L) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 1L..3L != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 1L..3L != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 1L..3L) != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 1L..3L) != range0.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 3L..1L != range1.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 3L..1L != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 3L..1L) != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 3L..1L) != range1.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3L..1L != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3L..1L != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3L..1L) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3L..1L) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 3L..1L != range1.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 3L..1L != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 3L..1L) != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 3L..1L) != range1.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3L..1L != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3L..1L != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3L..1L) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3L..1L) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (-1 in 3L..1L != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 3L..1L != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 3L..1L) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 3L..1L) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3L..1L != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3L..1L != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3L..1L) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3L..1L) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (-1L in 3L..1L != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 3L..1L != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 3L..1L) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 3L..1L) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3L..1L != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3L..1L != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3L..1L) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3L..1L) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 3L..1L != range1.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 3L..1L != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 3L..1L) != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 3L..1L) != range1.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3L..1L != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3L..1L != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3L..1L) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3L..1L) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 3L..1L != range1.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 3L..1L != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 3L..1L) != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 3L..1L) != range1.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3L..1L != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3L..1L != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3L..1L) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3L..1L) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 3L..1L != range1.contains(0)) throw AssertionError()
|
||||
if (0 !in 3L..1L != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 in 3L..1L) != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 3L..1L) != range1.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3L..1L != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3L..1L != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3L..1L) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3L..1L) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0L in 3L..1L != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in 3L..1L != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 3L..1L) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 3L..1L) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3L..1L != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3L..1L != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3L..1L) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3L..1L) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 3L..1L != range1.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 3L..1L != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 3L..1L) != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 3L..1L) != range1.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3L..1L != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3L..1L != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3L..1L) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3L..1L) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 3L..1L != range1.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 3L..1L != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 3L..1L) != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 3L..1L) != range1.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3L..1L != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3L..1L != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3L..1L) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3L..1L) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 3L..1L != range1.contains(1)) throw AssertionError()
|
||||
if (1 !in 3L..1L != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 in 3L..1L) != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 3L..1L) != range1.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3L..1L != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3L..1L != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3L..1L) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3L..1L) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1L in 3L..1L != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in 3L..1L != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 3L..1L) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 3L..1L) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3L..1L != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3L..1L != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3L..1L) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3L..1L) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 3L..1L != range1.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 3L..1L != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 3L..1L) != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 3L..1L) != range1.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 3L..1L != range1.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 3L..1L != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 3L..1L) != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 3L..1L) != range1.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 3L..1L != range1.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 3L..1L != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 3L..1L) != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 3L..1L) != range1.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 3L..1L != range1.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 3L..1L != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 3L..1L) != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 3L..1L) != range1.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 3L..1L != range1.contains(2)) throw AssertionError()
|
||||
if (2 !in 3L..1L != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 in 3L..1L) != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 3L..1L) != range1.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 3L..1L != range1.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 3L..1L != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 3L..1L) != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 3L..1L) != range1.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2L in 3L..1L != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in 3L..1L != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 3L..1L) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 3L..1L) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 3L..1L != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 3L..1L != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 3L..1L) != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 3L..1L) != range1.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 3L..1L != range1.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 3L..1L != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 3L..1L) != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 3L..1L) != range1.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 3L..1L != range1.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 3L..1L != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 3L..1L) != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 3L..1L) != range1.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 3L..1L != range1.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 3L..1L != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 3L..1L) != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 3L..1L) != range1.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 3L..1L != range1.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 3L..1L != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 3L..1L) != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 3L..1L) != range1.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 3L..1L != range1.contains(3)) throw AssertionError()
|
||||
if (3 !in 3L..1L != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 in 3L..1L) != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 3L..1L) != range1.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 3L..1L != range1.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 3L..1L != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 3L..1L) != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 3L..1L) != range1.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3L in 3L..1L != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in 3L..1L != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 3L..1L) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 3L..1L) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 3L..1L != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 3L..1L != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 3L..1L) != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 3L..1L) != range1.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 3L..1L != range1.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 3L..1L != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 3L..1L) != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 3L..1L) != range1.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 3L..1L != range1.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 3L..1L != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 3L..1L) != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 3L..1L) != range1.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 3L..1L != range1.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 3L..1L != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 3L..1L) != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 3L..1L) != range1.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 3L..1L != range1.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 3L..1L != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 3L..1L) != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 3L..1L) != range1.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 3L..1L != range1.contains(4)) throw AssertionError()
|
||||
if (4 !in 3L..1L != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 in 3L..1L) != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 3L..1L) != range1.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 3L..1L != range1.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 3L..1L != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 3L..1L) != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 3L..1L) != range1.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4L in 3L..1L != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in 3L..1L != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 3L..1L) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 3L..1L) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 3L..1L != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 3L..1L != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 3L..1L) != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 3L..1L) != range1.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,713 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||
// !LANGUAGE: +RangeUntilOperator
|
||||
@file:OptIn(ExperimentalStdlibApi::class)
|
||||
|
||||
|
||||
|
||||
val range0 = 1L..<3L
|
||||
val range1 = 3L..<1L
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR0xE5()
|
||||
testR0xE6()
|
||||
testR0xE7()
|
||||
testR0xE8()
|
||||
testR0xE9()
|
||||
testR0xE10()
|
||||
testR0xE11()
|
||||
testR0xE12()
|
||||
testR0xE13()
|
||||
testR0xE14()
|
||||
testR0xE15()
|
||||
testR0xE16()
|
||||
testR0xE17()
|
||||
testR0xE18()
|
||||
testR0xE19()
|
||||
testR0xE20()
|
||||
testR0xE21()
|
||||
testR0xE22()
|
||||
testR0xE23()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
testR1xE5()
|
||||
testR1xE6()
|
||||
testR1xE7()
|
||||
testR1xE8()
|
||||
testR1xE9()
|
||||
testR1xE10()
|
||||
testR1xE11()
|
||||
testR1xE12()
|
||||
testR1xE13()
|
||||
testR1xE14()
|
||||
testR1xE15()
|
||||
testR1xE16()
|
||||
testR1xE17()
|
||||
testR1xE18()
|
||||
testR1xE19()
|
||||
testR1xE20()
|
||||
testR1xE21()
|
||||
testR1xE22()
|
||||
testR1xE23()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 1L..<3L != range0.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 1L..<3L != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 1L..<3L) != !range0.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 1L..<3L) != range0.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1L..<3L != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1L..<3L != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1L..<3L) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1L..<3L) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 1L..<3L != range0.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 1L..<3L != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 1L..<3L) != !range0.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 1L..<3L) != range0.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1L..<3L != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1L..<3L != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1L..<3L) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1L..<3L) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (-1 in 1L..<3L != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 1L..<3L != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 1L..<3L) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 1L..<3L) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1L..<3L != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1L..<3L != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1L..<3L) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1L..<3L) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (-1L in 1L..<3L != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 1L..<3L != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 1L..<3L) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 1L..<3L) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1L..<3L != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1L..<3L != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1L..<3L) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1L..<3L) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 1L..<3L != range0.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 1L..<3L != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 1L..<3L) != !range0.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 1L..<3L) != range0.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1L..<3L != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1L..<3L != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1L..<3L) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1L..<3L) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 1L..<3L != range0.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 1L..<3L != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 1L..<3L) != !range0.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 1L..<3L) != range0.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 1L..<3L != range0.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 1L..<3L != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 1L..<3L) != !range0.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 1L..<3L) != range0.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 1L..<3L != range0.contains(0)) throw AssertionError()
|
||||
if (0 !in 1L..<3L != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 in 1L..<3L) != !range0.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 1L..<3L) != range0.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 1L..<3L != range0.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 1L..<3L != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 1L..<3L) != !range0.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 1L..<3L) != range0.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0L in 1L..<3L != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in 1L..<3L != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 1L..<3L) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 1L..<3L) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1L..<3L != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1L..<3L != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 1L..<3L) != !range0.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 1L..<3L) != range0.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 1L..<3L != range0.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 1L..<3L != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 1L..<3L) != !range0.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 1L..<3L) != range0.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 1L..<3L != range0.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 1L..<3L != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 1L..<3L) != !range0.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 1L..<3L) != range0.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 1L..<3L != range0.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 1L..<3L != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 1L..<3L) != !range0.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 1L..<3L) != range0.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 1L..<3L != range0.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 1L..<3L != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 1L..<3L) != !range0.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 1L..<3L) != range0.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 1L..<3L != range0.contains(1)) throw AssertionError()
|
||||
if (1 !in 1L..<3L != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 in 1L..<3L) != !range0.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 1L..<3L) != range0.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 1L..<3L != range0.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 1L..<3L != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 1L..<3L) != !range0.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 1L..<3L) != range0.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1L in 1L..<3L != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in 1L..<3L != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 1L..<3L) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 1L..<3L) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1L..<3L != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1L..<3L != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 1L..<3L) != !range0.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 1L..<3L) != range0.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 1L..<3L != range0.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 1L..<3L != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 1L..<3L) != !range0.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 1L..<3L) != range0.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 1L..<3L != range0.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 1L..<3L != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 1L..<3L) != !range0.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 1L..<3L) != range0.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 1L..<3L != range0.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 1L..<3L != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 1L..<3L) != !range0.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 1L..<3L) != range0.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 1L..<3L != range0.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 1L..<3L != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 1L..<3L) != !range0.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 1L..<3L) != range0.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 1L..<3L != range0.contains(2)) throw AssertionError()
|
||||
if (2 !in 1L..<3L != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 in 1L..<3L) != !range0.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 1L..<3L) != range0.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 1L..<3L != range0.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 1L..<3L != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 1L..<3L) != !range0.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 1L..<3L) != range0.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2L in 1L..<3L != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in 1L..<3L != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 1L..<3L) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 1L..<3L) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 1L..<3L != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 1L..<3L != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 1L..<3L) != !range0.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 1L..<3L) != range0.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 1L..<3L != range0.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 1L..<3L != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 1L..<3L) != !range0.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 1L..<3L) != range0.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 1L..<3L != range0.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 1L..<3L != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 1L..<3L) != !range0.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 1L..<3L) != range0.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 1L..<3L != range0.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 1L..<3L != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 1L..<3L) != !range0.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 1L..<3L) != range0.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 1L..<3L != range0.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 1L..<3L != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 1L..<3L) != !range0.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 1L..<3L) != range0.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 1L..<3L != range0.contains(3)) throw AssertionError()
|
||||
if (3 !in 1L..<3L != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 in 1L..<3L) != !range0.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 1L..<3L) != range0.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 1L..<3L != range0.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 1L..<3L != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 1L..<3L) != !range0.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 1L..<3L) != range0.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3L in 1L..<3L != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in 1L..<3L != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 1L..<3L) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 1L..<3L) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 1L..<3L != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 1L..<3L != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 1L..<3L) != !range0.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 1L..<3L) != range0.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 1L..<3L != range0.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 1L..<3L != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 1L..<3L) != !range0.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 1L..<3L) != range0.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 1L..<3L != range0.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 1L..<3L != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 1L..<3L) != !range0.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 1L..<3L) != range0.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 1L..<3L != range0.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 1L..<3L != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 1L..<3L) != !range0.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 1L..<3L) != range0.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 1L..<3L != range0.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 1L..<3L != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 1L..<3L) != !range0.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 1L..<3L) != range0.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 1L..<3L != range0.contains(4)) throw AssertionError()
|
||||
if (4 !in 1L..<3L != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 in 1L..<3L) != !range0.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 1L..<3L) != range0.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 1L..<3L != range0.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 1L..<3L != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 1L..<3L) != !range0.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 1L..<3L) != range0.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4L in 1L..<3L != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in 1L..<3L != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 1L..<3L) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 1L..<3L) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 1L..<3L != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 1L..<3L != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 1L..<3L) != !range0.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 1L..<3L) != range0.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toByte() in 3L..<1L != range1.contains((-1).toByte())) throw AssertionError()
|
||||
if ((-1).toByte() !in 3L..<1L != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() in 3L..<1L) != !range1.contains((-1).toByte())) throw AssertionError()
|
||||
if (!((-1).toByte() !in 3L..<1L) != range1.contains((-1).toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3L..<1L != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3L..<1L != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3L..<1L) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3L..<1L) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toShort() in 3L..<1L != range1.contains((-1).toShort())) throw AssertionError()
|
||||
if ((-1).toShort() !in 3L..<1L != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() in 3L..<1L) != !range1.contains((-1).toShort())) throw AssertionError()
|
||||
if (!((-1).toShort() !in 3L..<1L) != range1.contains((-1).toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3L..<1L != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3L..<1L != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3L..<1L) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3L..<1L) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (-1 in 3L..<1L != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 3L..<1L != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 3L..<1L) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 3L..<1L) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3L..<1L != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3L..<1L != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3L..<1L) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3L..<1L) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (-1L in 3L..<1L != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 3L..<1L != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 3L..<1L) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 3L..<1L) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3L..<1L != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3L..<1L != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3L..<1L) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3L..<1L) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (0.toByte() in 3L..<1L != range1.contains(0.toByte())) throw AssertionError()
|
||||
if (0.toByte() !in 3L..<1L != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() in 3L..<1L) != !range1.contains(0.toByte())) throw AssertionError()
|
||||
if (!(0.toByte() !in 3L..<1L) != range1.contains(0.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3L..<1L != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3L..<1L != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3L..<1L) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3L..<1L) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE5() {
|
||||
// with possible local optimizations
|
||||
if (0.toShort() in 3L..<1L != range1.contains(0.toShort())) throw AssertionError()
|
||||
if (0.toShort() !in 3L..<1L != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() in 3L..<1L) != !range1.contains(0.toShort())) throw AssertionError()
|
||||
if (!(0.toShort() !in 3L..<1L) != range1.contains(0.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element5 in 3L..<1L != range1.contains(element5)) throw AssertionError()
|
||||
if (element5 !in 3L..<1L != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 in 3L..<1L) != !range1.contains(element5)) throw AssertionError()
|
||||
if (!(element5 !in 3L..<1L) != range1.contains(element5)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE6() {
|
||||
// with possible local optimizations
|
||||
if (0 in 3L..<1L != range1.contains(0)) throw AssertionError()
|
||||
if (0 !in 3L..<1L != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 in 3L..<1L) != !range1.contains(0)) throw AssertionError()
|
||||
if (!(0 !in 3L..<1L) != range1.contains(0)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element6 in 3L..<1L != range1.contains(element6)) throw AssertionError()
|
||||
if (element6 !in 3L..<1L != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 in 3L..<1L) != !range1.contains(element6)) throw AssertionError()
|
||||
if (!(element6 !in 3L..<1L) != range1.contains(element6)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0L in 3L..<1L != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in 3L..<1L != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 3L..<1L) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 3L..<1L) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3L..<1L != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3L..<1L != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 in 3L..<1L) != !range1.contains(element7)) throw AssertionError()
|
||||
if (!(element7 !in 3L..<1L) != range1.contains(element7)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE8() {
|
||||
// with possible local optimizations
|
||||
if (1.toByte() in 3L..<1L != range1.contains(1.toByte())) throw AssertionError()
|
||||
if (1.toByte() !in 3L..<1L != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() in 3L..<1L) != !range1.contains(1.toByte())) throw AssertionError()
|
||||
if (!(1.toByte() !in 3L..<1L) != range1.contains(1.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element8 in 3L..<1L != range1.contains(element8)) throw AssertionError()
|
||||
if (element8 !in 3L..<1L != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 in 3L..<1L) != !range1.contains(element8)) throw AssertionError()
|
||||
if (!(element8 !in 3L..<1L) != range1.contains(element8)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE9() {
|
||||
// with possible local optimizations
|
||||
if (1.toShort() in 3L..<1L != range1.contains(1.toShort())) throw AssertionError()
|
||||
if (1.toShort() !in 3L..<1L != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() in 3L..<1L) != !range1.contains(1.toShort())) throw AssertionError()
|
||||
if (!(1.toShort() !in 3L..<1L) != range1.contains(1.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element9 in 3L..<1L != range1.contains(element9)) throw AssertionError()
|
||||
if (element9 !in 3L..<1L != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 in 3L..<1L) != !range1.contains(element9)) throw AssertionError()
|
||||
if (!(element9 !in 3L..<1L) != range1.contains(element9)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE10() {
|
||||
// with possible local optimizations
|
||||
if (1 in 3L..<1L != range1.contains(1)) throw AssertionError()
|
||||
if (1 !in 3L..<1L != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 in 3L..<1L) != !range1.contains(1)) throw AssertionError()
|
||||
if (!(1 !in 3L..<1L) != range1.contains(1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element10 in 3L..<1L != range1.contains(element10)) throw AssertionError()
|
||||
if (element10 !in 3L..<1L != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 in 3L..<1L) != !range1.contains(element10)) throw AssertionError()
|
||||
if (!(element10 !in 3L..<1L) != range1.contains(element10)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1L in 3L..<1L != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in 3L..<1L != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 3L..<1L) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 3L..<1L) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3L..<1L != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3L..<1L != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 in 3L..<1L) != !range1.contains(element11)) throw AssertionError()
|
||||
if (!(element11 !in 3L..<1L) != range1.contains(element11)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE12() {
|
||||
// with possible local optimizations
|
||||
if (2.toByte() in 3L..<1L != range1.contains(2.toByte())) throw AssertionError()
|
||||
if (2.toByte() !in 3L..<1L != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() in 3L..<1L) != !range1.contains(2.toByte())) throw AssertionError()
|
||||
if (!(2.toByte() !in 3L..<1L) != range1.contains(2.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element12 in 3L..<1L != range1.contains(element12)) throw AssertionError()
|
||||
if (element12 !in 3L..<1L != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 in 3L..<1L) != !range1.contains(element12)) throw AssertionError()
|
||||
if (!(element12 !in 3L..<1L) != range1.contains(element12)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE13() {
|
||||
// with possible local optimizations
|
||||
if (2.toShort() in 3L..<1L != range1.contains(2.toShort())) throw AssertionError()
|
||||
if (2.toShort() !in 3L..<1L != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() in 3L..<1L) != !range1.contains(2.toShort())) throw AssertionError()
|
||||
if (!(2.toShort() !in 3L..<1L) != range1.contains(2.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element13 in 3L..<1L != range1.contains(element13)) throw AssertionError()
|
||||
if (element13 !in 3L..<1L != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 in 3L..<1L) != !range1.contains(element13)) throw AssertionError()
|
||||
if (!(element13 !in 3L..<1L) != range1.contains(element13)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE14() {
|
||||
// with possible local optimizations
|
||||
if (2 in 3L..<1L != range1.contains(2)) throw AssertionError()
|
||||
if (2 !in 3L..<1L != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 in 3L..<1L) != !range1.contains(2)) throw AssertionError()
|
||||
if (!(2 !in 3L..<1L) != range1.contains(2)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element14 in 3L..<1L != range1.contains(element14)) throw AssertionError()
|
||||
if (element14 !in 3L..<1L != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 in 3L..<1L) != !range1.contains(element14)) throw AssertionError()
|
||||
if (!(element14 !in 3L..<1L) != range1.contains(element14)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2L in 3L..<1L != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in 3L..<1L != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 3L..<1L) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 3L..<1L) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 3L..<1L != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 3L..<1L != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 in 3L..<1L) != !range1.contains(element15)) throw AssertionError()
|
||||
if (!(element15 !in 3L..<1L) != range1.contains(element15)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE16() {
|
||||
// with possible local optimizations
|
||||
if (3.toByte() in 3L..<1L != range1.contains(3.toByte())) throw AssertionError()
|
||||
if (3.toByte() !in 3L..<1L != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() in 3L..<1L) != !range1.contains(3.toByte())) throw AssertionError()
|
||||
if (!(3.toByte() !in 3L..<1L) != range1.contains(3.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element16 in 3L..<1L != range1.contains(element16)) throw AssertionError()
|
||||
if (element16 !in 3L..<1L != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 in 3L..<1L) != !range1.contains(element16)) throw AssertionError()
|
||||
if (!(element16 !in 3L..<1L) != range1.contains(element16)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE17() {
|
||||
// with possible local optimizations
|
||||
if (3.toShort() in 3L..<1L != range1.contains(3.toShort())) throw AssertionError()
|
||||
if (3.toShort() !in 3L..<1L != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() in 3L..<1L) != !range1.contains(3.toShort())) throw AssertionError()
|
||||
if (!(3.toShort() !in 3L..<1L) != range1.contains(3.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element17 in 3L..<1L != range1.contains(element17)) throw AssertionError()
|
||||
if (element17 !in 3L..<1L != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 in 3L..<1L) != !range1.contains(element17)) throw AssertionError()
|
||||
if (!(element17 !in 3L..<1L) != range1.contains(element17)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE18() {
|
||||
// with possible local optimizations
|
||||
if (3 in 3L..<1L != range1.contains(3)) throw AssertionError()
|
||||
if (3 !in 3L..<1L != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 in 3L..<1L) != !range1.contains(3)) throw AssertionError()
|
||||
if (!(3 !in 3L..<1L) != range1.contains(3)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element18 in 3L..<1L != range1.contains(element18)) throw AssertionError()
|
||||
if (element18 !in 3L..<1L != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 in 3L..<1L) != !range1.contains(element18)) throw AssertionError()
|
||||
if (!(element18 !in 3L..<1L) != range1.contains(element18)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3L in 3L..<1L != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in 3L..<1L != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 3L..<1L) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 3L..<1L) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 3L..<1L != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 3L..<1L != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 in 3L..<1L) != !range1.contains(element19)) throw AssertionError()
|
||||
if (!(element19 !in 3L..<1L) != range1.contains(element19)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE20() {
|
||||
// with possible local optimizations
|
||||
if (4.toByte() in 3L..<1L != range1.contains(4.toByte())) throw AssertionError()
|
||||
if (4.toByte() !in 3L..<1L != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() in 3L..<1L) != !range1.contains(4.toByte())) throw AssertionError()
|
||||
if (!(4.toByte() !in 3L..<1L) != range1.contains(4.toByte())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element20 in 3L..<1L != range1.contains(element20)) throw AssertionError()
|
||||
if (element20 !in 3L..<1L != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 in 3L..<1L) != !range1.contains(element20)) throw AssertionError()
|
||||
if (!(element20 !in 3L..<1L) != range1.contains(element20)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE21() {
|
||||
// with possible local optimizations
|
||||
if (4.toShort() in 3L..<1L != range1.contains(4.toShort())) throw AssertionError()
|
||||
if (4.toShort() !in 3L..<1L != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() in 3L..<1L) != !range1.contains(4.toShort())) throw AssertionError()
|
||||
if (!(4.toShort() !in 3L..<1L) != range1.contains(4.toShort())) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element21 in 3L..<1L != range1.contains(element21)) throw AssertionError()
|
||||
if (element21 !in 3L..<1L != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 in 3L..<1L) != !range1.contains(element21)) throw AssertionError()
|
||||
if (!(element21 !in 3L..<1L) != range1.contains(element21)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE22() {
|
||||
// with possible local optimizations
|
||||
if (4 in 3L..<1L != range1.contains(4)) throw AssertionError()
|
||||
if (4 !in 3L..<1L != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 in 3L..<1L) != !range1.contains(4)) throw AssertionError()
|
||||
if (!(4 !in 3L..<1L) != range1.contains(4)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element22 in 3L..<1L != range1.contains(element22)) throw AssertionError()
|
||||
if (element22 !in 3L..<1L != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 in 3L..<1L) != !range1.contains(element22)) throw AssertionError()
|
||||
if (!(element22 !in 3L..<1L) != range1.contains(element22)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4L in 3L..<1L != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in 3L..<1L != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 3L..<1L) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 3L..<1L) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 3L..<1L != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 3L..<1L != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 in 3L..<1L) != !range1.contains(element23)) throw AssertionError()
|
||||
if (!(element23 !in 3L..<1L) != range1.contains(element23)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -8,28 +8,28 @@ val range1 = 3L until 1L
|
||||
|
||||
val element0 = (-1).toByte()
|
||||
val element1 = (-1).toShort()
|
||||
val element2 = (-1)
|
||||
val element3 = (-1).toLong()
|
||||
val element2 = -1
|
||||
val element3 = -1L
|
||||
val element4 = 0.toByte()
|
||||
val element5 = 0.toShort()
|
||||
val element6 = 0
|
||||
val element7 = 0.toLong()
|
||||
val element7 = 0L
|
||||
val element8 = 1.toByte()
|
||||
val element9 = 1.toShort()
|
||||
val element10 = 1
|
||||
val element11 = 1.toLong()
|
||||
val element11 = 1L
|
||||
val element12 = 2.toByte()
|
||||
val element13 = 2.toShort()
|
||||
val element14 = 2
|
||||
val element15 = 2.toLong()
|
||||
val element15 = 2L
|
||||
val element16 = 3.toByte()
|
||||
val element17 = 3.toShort()
|
||||
val element18 = 3
|
||||
val element19 = 3.toLong()
|
||||
val element19 = 3L
|
||||
val element20 = 4.toByte()
|
||||
val element21 = 4.toShort()
|
||||
val element22 = 4
|
||||
val element23 = 4.toLong()
|
||||
val element23 = 4L
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
@@ -111,10 +111,10 @@ fun testR0xE1() {
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in 1L until 3L != range0.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in 1L until 3L != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in 1L until 3L) != !range0.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in 1L until 3L) != range0.contains((-1))) throw AssertionError()
|
||||
if (-1 in 1L until 3L != range0.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 1L until 3L != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 1L until 3L) != !range0.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 1L until 3L) != range0.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1L until 3L != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1L until 3L != !range0.contains(element2)) throw AssertionError()
|
||||
@@ -124,10 +124,10 @@ fun testR0xE2() {
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in 1L until 3L != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in 1L until 3L != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in 1L until 3L) != !range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in 1L until 3L) != range0.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in 1L until 3L != range0.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 1L until 3L != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 1L until 3L) != !range0.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 1L until 3L) != range0.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1L until 3L != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1L until 3L != !range0.contains(element3)) throw AssertionError()
|
||||
@@ -176,10 +176,10 @@ fun testR0xE6() {
|
||||
|
||||
fun testR0xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in 1L until 3L != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in 1L until 3L != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in 1L until 3L) != !range0.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in 1L until 3L) != range0.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in 1L until 3L != range0.contains(0L)) throw AssertionError()
|
||||
if (0L !in 1L until 3L != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 1L until 3L) != !range0.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 1L until 3L) != range0.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 1L until 3L != range0.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 1L until 3L != !range0.contains(element7)) throw AssertionError()
|
||||
@@ -228,10 +228,10 @@ fun testR0xE10() {
|
||||
|
||||
fun testR0xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in 1L until 3L != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in 1L until 3L != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in 1L until 3L) != !range0.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in 1L until 3L) != range0.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in 1L until 3L != range0.contains(1L)) throw AssertionError()
|
||||
if (1L !in 1L until 3L != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 1L until 3L) != !range0.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 1L until 3L) != range0.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 1L until 3L != range0.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 1L until 3L != !range0.contains(element11)) throw AssertionError()
|
||||
@@ -280,10 +280,10 @@ fun testR0xE14() {
|
||||
|
||||
fun testR0xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in 1L until 3L != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in 1L until 3L != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in 1L until 3L) != !range0.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in 1L until 3L) != range0.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in 1L until 3L != range0.contains(2L)) throw AssertionError()
|
||||
if (2L !in 1L until 3L != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 1L until 3L) != !range0.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 1L until 3L) != range0.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 1L until 3L != range0.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 1L until 3L != !range0.contains(element15)) throw AssertionError()
|
||||
@@ -332,10 +332,10 @@ fun testR0xE18() {
|
||||
|
||||
fun testR0xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in 1L until 3L != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in 1L until 3L != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in 1L until 3L) != !range0.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in 1L until 3L) != range0.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in 1L until 3L != range0.contains(3L)) throw AssertionError()
|
||||
if (3L !in 1L until 3L != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 1L until 3L) != !range0.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 1L until 3L) != range0.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 1L until 3L != range0.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 1L until 3L != !range0.contains(element19)) throw AssertionError()
|
||||
@@ -384,10 +384,10 @@ fun testR0xE22() {
|
||||
|
||||
fun testR0xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in 1L until 3L != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in 1L until 3L != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in 1L until 3L) != !range0.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in 1L until 3L) != range0.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in 1L until 3L != range0.contains(4L)) throw AssertionError()
|
||||
if (4L !in 1L until 3L != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 1L until 3L) != !range0.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 1L until 3L) != range0.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 1L until 3L != range0.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 1L until 3L != !range0.contains(element23)) throw AssertionError()
|
||||
@@ -423,10 +423,10 @@ fun testR1xE1() {
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if ((-1) in 3L until 1L != range1.contains((-1))) throw AssertionError()
|
||||
if ((-1) !in 3L until 1L != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) in 3L until 1L) != !range1.contains((-1))) throw AssertionError()
|
||||
if (!((-1) !in 3L until 1L) != range1.contains((-1))) throw AssertionError()
|
||||
if (-1 in 3L until 1L != range1.contains(-1)) throw AssertionError()
|
||||
if (-1 !in 3L until 1L != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 in 3L until 1L) != !range1.contains(-1)) throw AssertionError()
|
||||
if (!(-1 !in 3L until 1L) != range1.contains(-1)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3L until 1L != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3L until 1L != !range1.contains(element2)) throw AssertionError()
|
||||
@@ -436,10 +436,10 @@ fun testR1xE2() {
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if ((-1).toLong() in 3L until 1L != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if ((-1).toLong() !in 3L until 1L != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() in 3L until 1L) != !range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (!((-1).toLong() !in 3L until 1L) != range1.contains((-1).toLong())) throw AssertionError()
|
||||
if (-1L in 3L until 1L != range1.contains(-1L)) throw AssertionError()
|
||||
if (-1L !in 3L until 1L != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L in 3L until 1L) != !range1.contains(-1L)) throw AssertionError()
|
||||
if (!(-1L !in 3L until 1L) != range1.contains(-1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3L until 1L != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3L until 1L != !range1.contains(element3)) throw AssertionError()
|
||||
@@ -488,10 +488,10 @@ fun testR1xE6() {
|
||||
|
||||
fun testR1xE7() {
|
||||
// with possible local optimizations
|
||||
if (0.toLong() in 3L until 1L != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0.toLong() !in 3L until 1L != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() in 3L until 1L) != !range1.contains(0.toLong())) throw AssertionError()
|
||||
if (!(0.toLong() !in 3L until 1L) != range1.contains(0.toLong())) throw AssertionError()
|
||||
if (0L in 3L until 1L != range1.contains(0L)) throw AssertionError()
|
||||
if (0L !in 3L until 1L != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L in 3L until 1L) != !range1.contains(0L)) throw AssertionError()
|
||||
if (!(0L !in 3L until 1L) != range1.contains(0L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element7 in 3L until 1L != range1.contains(element7)) throw AssertionError()
|
||||
if (element7 !in 3L until 1L != !range1.contains(element7)) throw AssertionError()
|
||||
@@ -540,10 +540,10 @@ fun testR1xE10() {
|
||||
|
||||
fun testR1xE11() {
|
||||
// with possible local optimizations
|
||||
if (1.toLong() in 3L until 1L != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1.toLong() !in 3L until 1L != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() in 3L until 1L) != !range1.contains(1.toLong())) throw AssertionError()
|
||||
if (!(1.toLong() !in 3L until 1L) != range1.contains(1.toLong())) throw AssertionError()
|
||||
if (1L in 3L until 1L != range1.contains(1L)) throw AssertionError()
|
||||
if (1L !in 3L until 1L != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L in 3L until 1L) != !range1.contains(1L)) throw AssertionError()
|
||||
if (!(1L !in 3L until 1L) != range1.contains(1L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element11 in 3L until 1L != range1.contains(element11)) throw AssertionError()
|
||||
if (element11 !in 3L until 1L != !range1.contains(element11)) throw AssertionError()
|
||||
@@ -592,10 +592,10 @@ fun testR1xE14() {
|
||||
|
||||
fun testR1xE15() {
|
||||
// with possible local optimizations
|
||||
if (2.toLong() in 3L until 1L != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2.toLong() !in 3L until 1L != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() in 3L until 1L) != !range1.contains(2.toLong())) throw AssertionError()
|
||||
if (!(2.toLong() !in 3L until 1L) != range1.contains(2.toLong())) throw AssertionError()
|
||||
if (2L in 3L until 1L != range1.contains(2L)) throw AssertionError()
|
||||
if (2L !in 3L until 1L != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L in 3L until 1L) != !range1.contains(2L)) throw AssertionError()
|
||||
if (!(2L !in 3L until 1L) != range1.contains(2L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element15 in 3L until 1L != range1.contains(element15)) throw AssertionError()
|
||||
if (element15 !in 3L until 1L != !range1.contains(element15)) throw AssertionError()
|
||||
@@ -644,10 +644,10 @@ fun testR1xE18() {
|
||||
|
||||
fun testR1xE19() {
|
||||
// with possible local optimizations
|
||||
if (3.toLong() in 3L until 1L != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3.toLong() !in 3L until 1L != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() in 3L until 1L) != !range1.contains(3.toLong())) throw AssertionError()
|
||||
if (!(3.toLong() !in 3L until 1L) != range1.contains(3.toLong())) throw AssertionError()
|
||||
if (3L in 3L until 1L != range1.contains(3L)) throw AssertionError()
|
||||
if (3L !in 3L until 1L != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L in 3L until 1L) != !range1.contains(3L)) throw AssertionError()
|
||||
if (!(3L !in 3L until 1L) != range1.contains(3L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element19 in 3L until 1L != range1.contains(element19)) throw AssertionError()
|
||||
if (element19 !in 3L until 1L != !range1.contains(element19)) throw AssertionError()
|
||||
@@ -696,10 +696,10 @@ fun testR1xE22() {
|
||||
|
||||
fun testR1xE23() {
|
||||
// with possible local optimizations
|
||||
if (4.toLong() in 3L until 1L != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4.toLong() !in 3L until 1L != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() in 3L until 1L) != !range1.contains(4.toLong())) throw AssertionError()
|
||||
if (!(4.toLong() !in 3L until 1L) != range1.contains(4.toLong())) throw AssertionError()
|
||||
if (4L in 3L until 1L != range1.contains(4L)) throw AssertionError()
|
||||
if (4L !in 3L until 1L != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L in 3L until 1L) != !range1.contains(4L)) throw AssertionError()
|
||||
if (!(4L !in 3L until 1L) != range1.contains(4L)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element23 in 3L until 1L != range1.contains(element23)) throw AssertionError()
|
||||
if (element23 !in 3L until 1L != !range1.contains(element23)) throw AssertionError()
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1u downTo 3u
|
||||
val range1 = 3u downTo 1u
|
||||
|
||||
val element0 = 0u
|
||||
val element1 = 1u
|
||||
val element2 = 2u
|
||||
val element3 = 3u
|
||||
val element4 = 4u
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (0u in 1u downTo 3u != range0.contains(0u)) throw AssertionError()
|
||||
if (0u !in 1u downTo 3u != !range0.contains(0u)) throw AssertionError()
|
||||
if (!(0u in 1u downTo 3u) != !range0.contains(0u)) throw AssertionError()
|
||||
if (!(0u !in 1u downTo 3u) != range0.contains(0u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1u downTo 3u != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1u downTo 3u != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1u downTo 3u) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1u downTo 3u) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (1u in 1u downTo 3u != range0.contains(1u)) throw AssertionError()
|
||||
if (1u !in 1u downTo 3u != !range0.contains(1u)) throw AssertionError()
|
||||
if (!(1u in 1u downTo 3u) != !range0.contains(1u)) throw AssertionError()
|
||||
if (!(1u !in 1u downTo 3u) != range0.contains(1u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1u downTo 3u != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1u downTo 3u != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1u downTo 3u) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1u downTo 3u) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (2u in 1u downTo 3u != range0.contains(2u)) throw AssertionError()
|
||||
if (2u !in 1u downTo 3u != !range0.contains(2u)) throw AssertionError()
|
||||
if (!(2u in 1u downTo 3u) != !range0.contains(2u)) throw AssertionError()
|
||||
if (!(2u !in 1u downTo 3u) != range0.contains(2u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1u downTo 3u != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1u downTo 3u != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1u downTo 3u) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1u downTo 3u) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (3u in 1u downTo 3u != range0.contains(3u)) throw AssertionError()
|
||||
if (3u !in 1u downTo 3u != !range0.contains(3u)) throw AssertionError()
|
||||
if (!(3u in 1u downTo 3u) != !range0.contains(3u)) throw AssertionError()
|
||||
if (!(3u !in 1u downTo 3u) != range0.contains(3u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1u downTo 3u != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1u downTo 3u != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1u downTo 3u) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1u downTo 3u) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (4u in 1u downTo 3u != range0.contains(4u)) throw AssertionError()
|
||||
if (4u !in 1u downTo 3u != !range0.contains(4u)) throw AssertionError()
|
||||
if (!(4u in 1u downTo 3u) != !range0.contains(4u)) throw AssertionError()
|
||||
if (!(4u !in 1u downTo 3u) != range0.contains(4u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1u downTo 3u != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1u downTo 3u != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1u downTo 3u) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1u downTo 3u) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (0u in 3u downTo 1u != range1.contains(0u)) throw AssertionError()
|
||||
if (0u !in 3u downTo 1u != !range1.contains(0u)) throw AssertionError()
|
||||
if (!(0u in 3u downTo 1u) != !range1.contains(0u)) throw AssertionError()
|
||||
if (!(0u !in 3u downTo 1u) != range1.contains(0u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3u downTo 1u != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3u downTo 1u != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3u downTo 1u) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3u downTo 1u) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (1u in 3u downTo 1u != range1.contains(1u)) throw AssertionError()
|
||||
if (1u !in 3u downTo 1u != !range1.contains(1u)) throw AssertionError()
|
||||
if (!(1u in 3u downTo 1u) != !range1.contains(1u)) throw AssertionError()
|
||||
if (!(1u !in 3u downTo 1u) != range1.contains(1u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3u downTo 1u != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3u downTo 1u != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3u downTo 1u) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3u downTo 1u) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (2u in 3u downTo 1u != range1.contains(2u)) throw AssertionError()
|
||||
if (2u !in 3u downTo 1u != !range1.contains(2u)) throw AssertionError()
|
||||
if (!(2u in 3u downTo 1u) != !range1.contains(2u)) throw AssertionError()
|
||||
if (!(2u !in 3u downTo 1u) != range1.contains(2u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3u downTo 1u != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3u downTo 1u != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3u downTo 1u) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3u downTo 1u) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (3u in 3u downTo 1u != range1.contains(3u)) throw AssertionError()
|
||||
if (3u !in 3u downTo 1u != !range1.contains(3u)) throw AssertionError()
|
||||
if (!(3u in 3u downTo 1u) != !range1.contains(3u)) throw AssertionError()
|
||||
if (!(3u !in 3u downTo 1u) != range1.contains(3u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3u downTo 1u != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3u downTo 1u != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3u downTo 1u) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3u downTo 1u) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (4u in 3u downTo 1u != range1.contains(4u)) throw AssertionError()
|
||||
if (4u !in 3u downTo 1u != !range1.contains(4u)) throw AssertionError()
|
||||
if (!(4u in 3u downTo 1u) != !range1.contains(4u)) throw AssertionError()
|
||||
if (!(4u !in 3u downTo 1u) != range1.contains(4u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3u downTo 1u != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3u downTo 1u != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3u downTo 1u) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3u downTo 1u) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1u..3u
|
||||
val range1 = 3u..1u
|
||||
|
||||
val element0 = 0u
|
||||
val element1 = 1u
|
||||
val element2 = 2u
|
||||
val element3 = 3u
|
||||
val element4 = 4u
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (0u in 1u..3u != range0.contains(0u)) throw AssertionError()
|
||||
if (0u !in 1u..3u != !range0.contains(0u)) throw AssertionError()
|
||||
if (!(0u in 1u..3u) != !range0.contains(0u)) throw AssertionError()
|
||||
if (!(0u !in 1u..3u) != range0.contains(0u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1u..3u != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1u..3u != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1u..3u) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1u..3u) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (1u in 1u..3u != range0.contains(1u)) throw AssertionError()
|
||||
if (1u !in 1u..3u != !range0.contains(1u)) throw AssertionError()
|
||||
if (!(1u in 1u..3u) != !range0.contains(1u)) throw AssertionError()
|
||||
if (!(1u !in 1u..3u) != range0.contains(1u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1u..3u != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1u..3u != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1u..3u) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1u..3u) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (2u in 1u..3u != range0.contains(2u)) throw AssertionError()
|
||||
if (2u !in 1u..3u != !range0.contains(2u)) throw AssertionError()
|
||||
if (!(2u in 1u..3u) != !range0.contains(2u)) throw AssertionError()
|
||||
if (!(2u !in 1u..3u) != range0.contains(2u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1u..3u != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1u..3u != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1u..3u) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1u..3u) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (3u in 1u..3u != range0.contains(3u)) throw AssertionError()
|
||||
if (3u !in 1u..3u != !range0.contains(3u)) throw AssertionError()
|
||||
if (!(3u in 1u..3u) != !range0.contains(3u)) throw AssertionError()
|
||||
if (!(3u !in 1u..3u) != range0.contains(3u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1u..3u != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1u..3u != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1u..3u) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1u..3u) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (4u in 1u..3u != range0.contains(4u)) throw AssertionError()
|
||||
if (4u !in 1u..3u != !range0.contains(4u)) throw AssertionError()
|
||||
if (!(4u in 1u..3u) != !range0.contains(4u)) throw AssertionError()
|
||||
if (!(4u !in 1u..3u) != range0.contains(4u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1u..3u != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1u..3u != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1u..3u) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1u..3u) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (0u in 3u..1u != range1.contains(0u)) throw AssertionError()
|
||||
if (0u !in 3u..1u != !range1.contains(0u)) throw AssertionError()
|
||||
if (!(0u in 3u..1u) != !range1.contains(0u)) throw AssertionError()
|
||||
if (!(0u !in 3u..1u) != range1.contains(0u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3u..1u != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3u..1u != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3u..1u) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3u..1u) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (1u in 3u..1u != range1.contains(1u)) throw AssertionError()
|
||||
if (1u !in 3u..1u != !range1.contains(1u)) throw AssertionError()
|
||||
if (!(1u in 3u..1u) != !range1.contains(1u)) throw AssertionError()
|
||||
if (!(1u !in 3u..1u) != range1.contains(1u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3u..1u != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3u..1u != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3u..1u) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3u..1u) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (2u in 3u..1u != range1.contains(2u)) throw AssertionError()
|
||||
if (2u !in 3u..1u != !range1.contains(2u)) throw AssertionError()
|
||||
if (!(2u in 3u..1u) != !range1.contains(2u)) throw AssertionError()
|
||||
if (!(2u !in 3u..1u) != range1.contains(2u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3u..1u != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3u..1u != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3u..1u) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3u..1u) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (3u in 3u..1u != range1.contains(3u)) throw AssertionError()
|
||||
if (3u !in 3u..1u != !range1.contains(3u)) throw AssertionError()
|
||||
if (!(3u in 3u..1u) != !range1.contains(3u)) throw AssertionError()
|
||||
if (!(3u !in 3u..1u) != range1.contains(3u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3u..1u != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3u..1u != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3u..1u) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3u..1u) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (4u in 3u..1u != range1.contains(4u)) throw AssertionError()
|
||||
if (4u !in 3u..1u != !range1.contains(4u)) throw AssertionError()
|
||||
if (!(4u in 3u..1u) != !range1.contains(4u)) throw AssertionError()
|
||||
if (!(4u !in 3u..1u) != range1.contains(4u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3u..1u != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3u..1u != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3u..1u) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3u..1u) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||
// !LANGUAGE: +RangeUntilOperator
|
||||
@file:OptIn(ExperimentalStdlibApi::class)
|
||||
|
||||
|
||||
|
||||
val range0 = 1u..<3u
|
||||
val range1 = 3u..<1u
|
||||
|
||||
val element0 = 0u
|
||||
val element1 = 1u
|
||||
val element2 = 2u
|
||||
val element3 = 3u
|
||||
val element4 = 4u
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (0u in 1u..<3u != range0.contains(0u)) throw AssertionError()
|
||||
if (0u !in 1u..<3u != !range0.contains(0u)) throw AssertionError()
|
||||
if (!(0u in 1u..<3u) != !range0.contains(0u)) throw AssertionError()
|
||||
if (!(0u !in 1u..<3u) != range0.contains(0u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1u..<3u != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1u..<3u != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1u..<3u) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1u..<3u) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (1u in 1u..<3u != range0.contains(1u)) throw AssertionError()
|
||||
if (1u !in 1u..<3u != !range0.contains(1u)) throw AssertionError()
|
||||
if (!(1u in 1u..<3u) != !range0.contains(1u)) throw AssertionError()
|
||||
if (!(1u !in 1u..<3u) != range0.contains(1u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1u..<3u != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1u..<3u != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1u..<3u) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1u..<3u) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (2u in 1u..<3u != range0.contains(2u)) throw AssertionError()
|
||||
if (2u !in 1u..<3u != !range0.contains(2u)) throw AssertionError()
|
||||
if (!(2u in 1u..<3u) != !range0.contains(2u)) throw AssertionError()
|
||||
if (!(2u !in 1u..<3u) != range0.contains(2u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1u..<3u != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1u..<3u != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1u..<3u) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1u..<3u) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (3u in 1u..<3u != range0.contains(3u)) throw AssertionError()
|
||||
if (3u !in 1u..<3u != !range0.contains(3u)) throw AssertionError()
|
||||
if (!(3u in 1u..<3u) != !range0.contains(3u)) throw AssertionError()
|
||||
if (!(3u !in 1u..<3u) != range0.contains(3u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1u..<3u != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1u..<3u != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1u..<3u) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1u..<3u) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (4u in 1u..<3u != range0.contains(4u)) throw AssertionError()
|
||||
if (4u !in 1u..<3u != !range0.contains(4u)) throw AssertionError()
|
||||
if (!(4u in 1u..<3u) != !range0.contains(4u)) throw AssertionError()
|
||||
if (!(4u !in 1u..<3u) != range0.contains(4u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1u..<3u != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1u..<3u != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1u..<3u) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1u..<3u) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (0u in 3u..<1u != range1.contains(0u)) throw AssertionError()
|
||||
if (0u !in 3u..<1u != !range1.contains(0u)) throw AssertionError()
|
||||
if (!(0u in 3u..<1u) != !range1.contains(0u)) throw AssertionError()
|
||||
if (!(0u !in 3u..<1u) != range1.contains(0u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3u..<1u != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3u..<1u != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3u..<1u) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3u..<1u) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (1u in 3u..<1u != range1.contains(1u)) throw AssertionError()
|
||||
if (1u !in 3u..<1u != !range1.contains(1u)) throw AssertionError()
|
||||
if (!(1u in 3u..<1u) != !range1.contains(1u)) throw AssertionError()
|
||||
if (!(1u !in 3u..<1u) != range1.contains(1u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3u..<1u != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3u..<1u != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3u..<1u) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3u..<1u) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (2u in 3u..<1u != range1.contains(2u)) throw AssertionError()
|
||||
if (2u !in 3u..<1u != !range1.contains(2u)) throw AssertionError()
|
||||
if (!(2u in 3u..<1u) != !range1.contains(2u)) throw AssertionError()
|
||||
if (!(2u !in 3u..<1u) != range1.contains(2u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3u..<1u != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3u..<1u != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3u..<1u) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3u..<1u) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (3u in 3u..<1u != range1.contains(3u)) throw AssertionError()
|
||||
if (3u !in 3u..<1u != !range1.contains(3u)) throw AssertionError()
|
||||
if (!(3u in 3u..<1u) != !range1.contains(3u)) throw AssertionError()
|
||||
if (!(3u !in 3u..<1u) != range1.contains(3u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3u..<1u != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3u..<1u != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3u..<1u) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3u..<1u) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (4u in 3u..<1u != range1.contains(4u)) throw AssertionError()
|
||||
if (4u !in 3u..<1u != !range1.contains(4u)) throw AssertionError()
|
||||
if (!(4u in 3u..<1u) != !range1.contains(4u)) throw AssertionError()
|
||||
if (!(4u !in 3u..<1u) != range1.contains(4u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3u..<1u != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3u..<1u != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3u..<1u) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3u..<1u) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1u until 3u
|
||||
val range1 = 3u until 1u
|
||||
|
||||
val element0 = 0u
|
||||
val element1 = 1u
|
||||
val element2 = 2u
|
||||
val element3 = 3u
|
||||
val element4 = 4u
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (0u in 1u until 3u != range0.contains(0u)) throw AssertionError()
|
||||
if (0u !in 1u until 3u != !range0.contains(0u)) throw AssertionError()
|
||||
if (!(0u in 1u until 3u) != !range0.contains(0u)) throw AssertionError()
|
||||
if (!(0u !in 1u until 3u) != range0.contains(0u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1u until 3u != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1u until 3u != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1u until 3u) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1u until 3u) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (1u in 1u until 3u != range0.contains(1u)) throw AssertionError()
|
||||
if (1u !in 1u until 3u != !range0.contains(1u)) throw AssertionError()
|
||||
if (!(1u in 1u until 3u) != !range0.contains(1u)) throw AssertionError()
|
||||
if (!(1u !in 1u until 3u) != range0.contains(1u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1u until 3u != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1u until 3u != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1u until 3u) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1u until 3u) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (2u in 1u until 3u != range0.contains(2u)) throw AssertionError()
|
||||
if (2u !in 1u until 3u != !range0.contains(2u)) throw AssertionError()
|
||||
if (!(2u in 1u until 3u) != !range0.contains(2u)) throw AssertionError()
|
||||
if (!(2u !in 1u until 3u) != range0.contains(2u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1u until 3u != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1u until 3u != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1u until 3u) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1u until 3u) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (3u in 1u until 3u != range0.contains(3u)) throw AssertionError()
|
||||
if (3u !in 1u until 3u != !range0.contains(3u)) throw AssertionError()
|
||||
if (!(3u in 1u until 3u) != !range0.contains(3u)) throw AssertionError()
|
||||
if (!(3u !in 1u until 3u) != range0.contains(3u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1u until 3u != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1u until 3u != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1u until 3u) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1u until 3u) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (4u in 1u until 3u != range0.contains(4u)) throw AssertionError()
|
||||
if (4u !in 1u until 3u != !range0.contains(4u)) throw AssertionError()
|
||||
if (!(4u in 1u until 3u) != !range0.contains(4u)) throw AssertionError()
|
||||
if (!(4u !in 1u until 3u) != range0.contains(4u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1u until 3u != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1u until 3u != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1u until 3u) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1u until 3u) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (0u in 3u until 1u != range1.contains(0u)) throw AssertionError()
|
||||
if (0u !in 3u until 1u != !range1.contains(0u)) throw AssertionError()
|
||||
if (!(0u in 3u until 1u) != !range1.contains(0u)) throw AssertionError()
|
||||
if (!(0u !in 3u until 1u) != range1.contains(0u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3u until 1u != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3u until 1u != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3u until 1u) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3u until 1u) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (1u in 3u until 1u != range1.contains(1u)) throw AssertionError()
|
||||
if (1u !in 3u until 1u != !range1.contains(1u)) throw AssertionError()
|
||||
if (!(1u in 3u until 1u) != !range1.contains(1u)) throw AssertionError()
|
||||
if (!(1u !in 3u until 1u) != range1.contains(1u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3u until 1u != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3u until 1u != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3u until 1u) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3u until 1u) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (2u in 3u until 1u != range1.contains(2u)) throw AssertionError()
|
||||
if (2u !in 3u until 1u != !range1.contains(2u)) throw AssertionError()
|
||||
if (!(2u in 3u until 1u) != !range1.contains(2u)) throw AssertionError()
|
||||
if (!(2u !in 3u until 1u) != range1.contains(2u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3u until 1u != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3u until 1u != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3u until 1u) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3u until 1u) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (3u in 3u until 1u != range1.contains(3u)) throw AssertionError()
|
||||
if (3u !in 3u until 1u != !range1.contains(3u)) throw AssertionError()
|
||||
if (!(3u in 3u until 1u) != !range1.contains(3u)) throw AssertionError()
|
||||
if (!(3u !in 3u until 1u) != range1.contains(3u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3u until 1u != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3u until 1u != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3u until 1u) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3u until 1u) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (4u in 3u until 1u != range1.contains(4u)) throw AssertionError()
|
||||
if (4u !in 3u until 1u != !range1.contains(4u)) throw AssertionError()
|
||||
if (!(4u in 3u until 1u) != !range1.contains(4u)) throw AssertionError()
|
||||
if (!(4u !in 3u until 1u) != range1.contains(4u)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3u until 1u != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3u until 1u != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3u until 1u) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3u until 1u) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1uL downTo 3uL
|
||||
val range1 = 3uL downTo 1uL
|
||||
|
||||
val element0 = 0uL
|
||||
val element1 = 1uL
|
||||
val element2 = 2uL
|
||||
val element3 = 3uL
|
||||
val element4 = 4uL
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (0uL in 1uL downTo 3uL != range0.contains(0uL)) throw AssertionError()
|
||||
if (0uL !in 1uL downTo 3uL != !range0.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL in 1uL downTo 3uL) != !range0.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL !in 1uL downTo 3uL) != range0.contains(0uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1uL downTo 3uL != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1uL downTo 3uL != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1uL downTo 3uL) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1uL downTo 3uL) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (1uL in 1uL downTo 3uL != range0.contains(1uL)) throw AssertionError()
|
||||
if (1uL !in 1uL downTo 3uL != !range0.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL in 1uL downTo 3uL) != !range0.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL !in 1uL downTo 3uL) != range0.contains(1uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1uL downTo 3uL != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1uL downTo 3uL != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1uL downTo 3uL) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1uL downTo 3uL) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (2uL in 1uL downTo 3uL != range0.contains(2uL)) throw AssertionError()
|
||||
if (2uL !in 1uL downTo 3uL != !range0.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL in 1uL downTo 3uL) != !range0.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL !in 1uL downTo 3uL) != range0.contains(2uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1uL downTo 3uL != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1uL downTo 3uL != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1uL downTo 3uL) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1uL downTo 3uL) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (3uL in 1uL downTo 3uL != range0.contains(3uL)) throw AssertionError()
|
||||
if (3uL !in 1uL downTo 3uL != !range0.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL in 1uL downTo 3uL) != !range0.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL !in 1uL downTo 3uL) != range0.contains(3uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1uL downTo 3uL != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1uL downTo 3uL != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1uL downTo 3uL) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1uL downTo 3uL) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (4uL in 1uL downTo 3uL != range0.contains(4uL)) throw AssertionError()
|
||||
if (4uL !in 1uL downTo 3uL != !range0.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL in 1uL downTo 3uL) != !range0.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL !in 1uL downTo 3uL) != range0.contains(4uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1uL downTo 3uL != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1uL downTo 3uL != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1uL downTo 3uL) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1uL downTo 3uL) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (0uL in 3uL downTo 1uL != range1.contains(0uL)) throw AssertionError()
|
||||
if (0uL !in 3uL downTo 1uL != !range1.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL in 3uL downTo 1uL) != !range1.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL !in 3uL downTo 1uL) != range1.contains(0uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3uL downTo 1uL != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3uL downTo 1uL != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3uL downTo 1uL) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3uL downTo 1uL) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (1uL in 3uL downTo 1uL != range1.contains(1uL)) throw AssertionError()
|
||||
if (1uL !in 3uL downTo 1uL != !range1.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL in 3uL downTo 1uL) != !range1.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL !in 3uL downTo 1uL) != range1.contains(1uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3uL downTo 1uL != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3uL downTo 1uL != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3uL downTo 1uL) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3uL downTo 1uL) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (2uL in 3uL downTo 1uL != range1.contains(2uL)) throw AssertionError()
|
||||
if (2uL !in 3uL downTo 1uL != !range1.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL in 3uL downTo 1uL) != !range1.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL !in 3uL downTo 1uL) != range1.contains(2uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3uL downTo 1uL != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3uL downTo 1uL != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3uL downTo 1uL) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3uL downTo 1uL) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (3uL in 3uL downTo 1uL != range1.contains(3uL)) throw AssertionError()
|
||||
if (3uL !in 3uL downTo 1uL != !range1.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL in 3uL downTo 1uL) != !range1.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL !in 3uL downTo 1uL) != range1.contains(3uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3uL downTo 1uL != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3uL downTo 1uL != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3uL downTo 1uL) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3uL downTo 1uL) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (4uL in 3uL downTo 1uL != range1.contains(4uL)) throw AssertionError()
|
||||
if (4uL !in 3uL downTo 1uL != !range1.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL in 3uL downTo 1uL) != !range1.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL !in 3uL downTo 1uL) != range1.contains(4uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3uL downTo 1uL != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3uL downTo 1uL != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3uL downTo 1uL) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3uL downTo 1uL) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1uL..3uL
|
||||
val range1 = 3uL..1uL
|
||||
|
||||
val element0 = 0uL
|
||||
val element1 = 1uL
|
||||
val element2 = 2uL
|
||||
val element3 = 3uL
|
||||
val element4 = 4uL
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (0uL in 1uL..3uL != range0.contains(0uL)) throw AssertionError()
|
||||
if (0uL !in 1uL..3uL != !range0.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL in 1uL..3uL) != !range0.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL !in 1uL..3uL) != range0.contains(0uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1uL..3uL != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1uL..3uL != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1uL..3uL) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1uL..3uL) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (1uL in 1uL..3uL != range0.contains(1uL)) throw AssertionError()
|
||||
if (1uL !in 1uL..3uL != !range0.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL in 1uL..3uL) != !range0.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL !in 1uL..3uL) != range0.contains(1uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1uL..3uL != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1uL..3uL != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1uL..3uL) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1uL..3uL) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (2uL in 1uL..3uL != range0.contains(2uL)) throw AssertionError()
|
||||
if (2uL !in 1uL..3uL != !range0.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL in 1uL..3uL) != !range0.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL !in 1uL..3uL) != range0.contains(2uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1uL..3uL != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1uL..3uL != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1uL..3uL) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1uL..3uL) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (3uL in 1uL..3uL != range0.contains(3uL)) throw AssertionError()
|
||||
if (3uL !in 1uL..3uL != !range0.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL in 1uL..3uL) != !range0.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL !in 1uL..3uL) != range0.contains(3uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1uL..3uL != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1uL..3uL != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1uL..3uL) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1uL..3uL) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (4uL in 1uL..3uL != range0.contains(4uL)) throw AssertionError()
|
||||
if (4uL !in 1uL..3uL != !range0.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL in 1uL..3uL) != !range0.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL !in 1uL..3uL) != range0.contains(4uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1uL..3uL != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1uL..3uL != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1uL..3uL) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1uL..3uL) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (0uL in 3uL..1uL != range1.contains(0uL)) throw AssertionError()
|
||||
if (0uL !in 3uL..1uL != !range1.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL in 3uL..1uL) != !range1.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL !in 3uL..1uL) != range1.contains(0uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3uL..1uL != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3uL..1uL != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3uL..1uL) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3uL..1uL) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (1uL in 3uL..1uL != range1.contains(1uL)) throw AssertionError()
|
||||
if (1uL !in 3uL..1uL != !range1.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL in 3uL..1uL) != !range1.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL !in 3uL..1uL) != range1.contains(1uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3uL..1uL != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3uL..1uL != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3uL..1uL) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3uL..1uL) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (2uL in 3uL..1uL != range1.contains(2uL)) throw AssertionError()
|
||||
if (2uL !in 3uL..1uL != !range1.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL in 3uL..1uL) != !range1.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL !in 3uL..1uL) != range1.contains(2uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3uL..1uL != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3uL..1uL != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3uL..1uL) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3uL..1uL) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (3uL in 3uL..1uL != range1.contains(3uL)) throw AssertionError()
|
||||
if (3uL !in 3uL..1uL != !range1.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL in 3uL..1uL) != !range1.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL !in 3uL..1uL) != range1.contains(3uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3uL..1uL != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3uL..1uL != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3uL..1uL) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3uL..1uL) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (4uL in 3uL..1uL != range1.contains(4uL)) throw AssertionError()
|
||||
if (4uL !in 3uL..1uL != !range1.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL in 3uL..1uL) != !range1.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL !in 3uL..1uL) != range1.contains(4uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3uL..1uL != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3uL..1uL != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3uL..1uL) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3uL..1uL) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
// DONT_TARGET_EXACT_BACKEND: JVM
|
||||
// !LANGUAGE: +RangeUntilOperator
|
||||
@file:OptIn(ExperimentalStdlibApi::class)
|
||||
|
||||
|
||||
|
||||
val range0 = 1uL..<3uL
|
||||
val range1 = 3uL..<1uL
|
||||
|
||||
val element0 = 0uL
|
||||
val element1 = 1uL
|
||||
val element2 = 2uL
|
||||
val element3 = 3uL
|
||||
val element4 = 4uL
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (0uL in 1uL..<3uL != range0.contains(0uL)) throw AssertionError()
|
||||
if (0uL !in 1uL..<3uL != !range0.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL in 1uL..<3uL) != !range0.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL !in 1uL..<3uL) != range0.contains(0uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1uL..<3uL != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1uL..<3uL != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1uL..<3uL) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1uL..<3uL) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (1uL in 1uL..<3uL != range0.contains(1uL)) throw AssertionError()
|
||||
if (1uL !in 1uL..<3uL != !range0.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL in 1uL..<3uL) != !range0.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL !in 1uL..<3uL) != range0.contains(1uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1uL..<3uL != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1uL..<3uL != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1uL..<3uL) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1uL..<3uL) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (2uL in 1uL..<3uL != range0.contains(2uL)) throw AssertionError()
|
||||
if (2uL !in 1uL..<3uL != !range0.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL in 1uL..<3uL) != !range0.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL !in 1uL..<3uL) != range0.contains(2uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1uL..<3uL != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1uL..<3uL != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1uL..<3uL) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1uL..<3uL) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (3uL in 1uL..<3uL != range0.contains(3uL)) throw AssertionError()
|
||||
if (3uL !in 1uL..<3uL != !range0.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL in 1uL..<3uL) != !range0.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL !in 1uL..<3uL) != range0.contains(3uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1uL..<3uL != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1uL..<3uL != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1uL..<3uL) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1uL..<3uL) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (4uL in 1uL..<3uL != range0.contains(4uL)) throw AssertionError()
|
||||
if (4uL !in 1uL..<3uL != !range0.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL in 1uL..<3uL) != !range0.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL !in 1uL..<3uL) != range0.contains(4uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1uL..<3uL != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1uL..<3uL != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1uL..<3uL) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1uL..<3uL) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (0uL in 3uL..<1uL != range1.contains(0uL)) throw AssertionError()
|
||||
if (0uL !in 3uL..<1uL != !range1.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL in 3uL..<1uL) != !range1.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL !in 3uL..<1uL) != range1.contains(0uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3uL..<1uL != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3uL..<1uL != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3uL..<1uL) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3uL..<1uL) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (1uL in 3uL..<1uL != range1.contains(1uL)) throw AssertionError()
|
||||
if (1uL !in 3uL..<1uL != !range1.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL in 3uL..<1uL) != !range1.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL !in 3uL..<1uL) != range1.contains(1uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3uL..<1uL != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3uL..<1uL != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3uL..<1uL) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3uL..<1uL) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (2uL in 3uL..<1uL != range1.contains(2uL)) throw AssertionError()
|
||||
if (2uL !in 3uL..<1uL != !range1.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL in 3uL..<1uL) != !range1.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL !in 3uL..<1uL) != range1.contains(2uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3uL..<1uL != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3uL..<1uL != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3uL..<1uL) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3uL..<1uL) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (3uL in 3uL..<1uL != range1.contains(3uL)) throw AssertionError()
|
||||
if (3uL !in 3uL..<1uL != !range1.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL in 3uL..<1uL) != !range1.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL !in 3uL..<1uL) != range1.contains(3uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3uL..<1uL != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3uL..<1uL != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3uL..<1uL) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3uL..<1uL) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (4uL in 3uL..<1uL != range1.contains(4uL)) throw AssertionError()
|
||||
if (4uL !in 3uL..<1uL != !range1.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL in 3uL..<1uL) != !range1.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL !in 3uL..<1uL) != range1.contains(4uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3uL..<1uL != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3uL..<1uL != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3uL..<1uL) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3uL..<1uL) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
// Auto-generated by GenerateInRangeExpressionTestData. Do not edit!
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
|
||||
val range0 = 1uL until 3uL
|
||||
val range1 = 3uL until 1uL
|
||||
|
||||
val element0 = 0uL
|
||||
val element1 = 1uL
|
||||
val element2 = 2uL
|
||||
val element3 = 3uL
|
||||
val element4 = 4uL
|
||||
|
||||
fun box(): String {
|
||||
testR0xE0()
|
||||
testR0xE1()
|
||||
testR0xE2()
|
||||
testR0xE3()
|
||||
testR0xE4()
|
||||
testR1xE0()
|
||||
testR1xE1()
|
||||
testR1xE2()
|
||||
testR1xE3()
|
||||
testR1xE4()
|
||||
return "OK"
|
||||
}
|
||||
|
||||
fun testR0xE0() {
|
||||
// with possible local optimizations
|
||||
if (0uL in 1uL until 3uL != range0.contains(0uL)) throw AssertionError()
|
||||
if (0uL !in 1uL until 3uL != !range0.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL in 1uL until 3uL) != !range0.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL !in 1uL until 3uL) != range0.contains(0uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 1uL until 3uL != range0.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 1uL until 3uL != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 1uL until 3uL) != !range0.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 1uL until 3uL) != range0.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE1() {
|
||||
// with possible local optimizations
|
||||
if (1uL in 1uL until 3uL != range0.contains(1uL)) throw AssertionError()
|
||||
if (1uL !in 1uL until 3uL != !range0.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL in 1uL until 3uL) != !range0.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL !in 1uL until 3uL) != range0.contains(1uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 1uL until 3uL != range0.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 1uL until 3uL != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 1uL until 3uL) != !range0.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 1uL until 3uL) != range0.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE2() {
|
||||
// with possible local optimizations
|
||||
if (2uL in 1uL until 3uL != range0.contains(2uL)) throw AssertionError()
|
||||
if (2uL !in 1uL until 3uL != !range0.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL in 1uL until 3uL) != !range0.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL !in 1uL until 3uL) != range0.contains(2uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 1uL until 3uL != range0.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 1uL until 3uL != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 1uL until 3uL) != !range0.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 1uL until 3uL) != range0.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE3() {
|
||||
// with possible local optimizations
|
||||
if (3uL in 1uL until 3uL != range0.contains(3uL)) throw AssertionError()
|
||||
if (3uL !in 1uL until 3uL != !range0.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL in 1uL until 3uL) != !range0.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL !in 1uL until 3uL) != range0.contains(3uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 1uL until 3uL != range0.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 1uL until 3uL != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 1uL until 3uL) != !range0.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 1uL until 3uL) != range0.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR0xE4() {
|
||||
// with possible local optimizations
|
||||
if (4uL in 1uL until 3uL != range0.contains(4uL)) throw AssertionError()
|
||||
if (4uL !in 1uL until 3uL != !range0.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL in 1uL until 3uL) != !range0.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL !in 1uL until 3uL) != range0.contains(4uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 1uL until 3uL != range0.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 1uL until 3uL != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 1uL until 3uL) != !range0.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 1uL until 3uL) != range0.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE0() {
|
||||
// with possible local optimizations
|
||||
if (0uL in 3uL until 1uL != range1.contains(0uL)) throw AssertionError()
|
||||
if (0uL !in 3uL until 1uL != !range1.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL in 3uL until 1uL) != !range1.contains(0uL)) throw AssertionError()
|
||||
if (!(0uL !in 3uL until 1uL) != range1.contains(0uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element0 in 3uL until 1uL != range1.contains(element0)) throw AssertionError()
|
||||
if (element0 !in 3uL until 1uL != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 in 3uL until 1uL) != !range1.contains(element0)) throw AssertionError()
|
||||
if (!(element0 !in 3uL until 1uL) != range1.contains(element0)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE1() {
|
||||
// with possible local optimizations
|
||||
if (1uL in 3uL until 1uL != range1.contains(1uL)) throw AssertionError()
|
||||
if (1uL !in 3uL until 1uL != !range1.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL in 3uL until 1uL) != !range1.contains(1uL)) throw AssertionError()
|
||||
if (!(1uL !in 3uL until 1uL) != range1.contains(1uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element1 in 3uL until 1uL != range1.contains(element1)) throw AssertionError()
|
||||
if (element1 !in 3uL until 1uL != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 in 3uL until 1uL) != !range1.contains(element1)) throw AssertionError()
|
||||
if (!(element1 !in 3uL until 1uL) != range1.contains(element1)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE2() {
|
||||
// with possible local optimizations
|
||||
if (2uL in 3uL until 1uL != range1.contains(2uL)) throw AssertionError()
|
||||
if (2uL !in 3uL until 1uL != !range1.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL in 3uL until 1uL) != !range1.contains(2uL)) throw AssertionError()
|
||||
if (!(2uL !in 3uL until 1uL) != range1.contains(2uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element2 in 3uL until 1uL != range1.contains(element2)) throw AssertionError()
|
||||
if (element2 !in 3uL until 1uL != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 in 3uL until 1uL) != !range1.contains(element2)) throw AssertionError()
|
||||
if (!(element2 !in 3uL until 1uL) != range1.contains(element2)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE3() {
|
||||
// with possible local optimizations
|
||||
if (3uL in 3uL until 1uL != range1.contains(3uL)) throw AssertionError()
|
||||
if (3uL !in 3uL until 1uL != !range1.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL in 3uL until 1uL) != !range1.contains(3uL)) throw AssertionError()
|
||||
if (!(3uL !in 3uL until 1uL) != range1.contains(3uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element3 in 3uL until 1uL != range1.contains(element3)) throw AssertionError()
|
||||
if (element3 !in 3uL until 1uL != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 in 3uL until 1uL) != !range1.contains(element3)) throw AssertionError()
|
||||
if (!(element3 !in 3uL until 1uL) != range1.contains(element3)) throw AssertionError()
|
||||
}
|
||||
|
||||
fun testR1xE4() {
|
||||
// with possible local optimizations
|
||||
if (4uL in 3uL until 1uL != range1.contains(4uL)) throw AssertionError()
|
||||
if (4uL !in 3uL until 1uL != !range1.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL in 3uL until 1uL) != !range1.contains(4uL)) throw AssertionError()
|
||||
if (!(4uL !in 3uL until 1uL) != range1.contains(4uL)) throw AssertionError()
|
||||
// no local optimizations
|
||||
if (element4 in 3uL until 1uL != range1.contains(element4)) throw AssertionError()
|
||||
if (element4 !in 3uL until 1uL != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 in 3uL until 1uL) != !range1.contains(element4)) throw AssertionError()
|
||||
if (!(element4 !in 3uL until 1uL) != range1.contains(element4)) throw AssertionError()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user