[FIR] Update GenerateRangesCodegenTestData for newly-enabled FIR tests.
This commit is contained in:
committed by
Mikhail Glukhikh
parent
89d706972c
commit
d5141674a3
+8
-9
@@ -70,13 +70,11 @@ public class GenerateRangesCodegenTestData {
|
|||||||
private static final Map<String, String> ELEMENT_TYPE_KNOWN_SUBSTRINGS = new HashMap<>();
|
private static final Map<String, String> ELEMENT_TYPE_KNOWN_SUBSTRINGS = new HashMap<>();
|
||||||
private static final Map<String, String> MIN_MAX_CONSTANTS = new LinkedHashMap<>();
|
private static final Map<String, String> MIN_MAX_CONSTANTS = new LinkedHashMap<>();
|
||||||
|
|
||||||
private static final List<String> FIR_PASSING_UNSIGNED_LITERAL_TESTS =
|
private static final List<String> FIR_FAILING_UNSIGNED_TESTS =
|
||||||
Arrays.asList("emptyDownto", "emptyRange", "oneElementDownTo", "oneElementRange", "reversedEmptyBackSequence",
|
Arrays.asList("inexactDownToMinValue", "inexactToMaxValue", "maxValueMinusTwoToMaxValue", "maxValueToMaxValue",
|
||||||
"reversedEmptyRange");
|
"maxValueToMinValue", "overflowZeroDownToMaxValue", "overflowZeroToMinValue", "progressionDownToMinValue",
|
||||||
|
"progressionMaxValueMinusTwoToMaxValue", "progressionMaxValueToMaxValue", "progressionMaxValueToMinValue",
|
||||||
private static final List<String> FIR_PASSING_UNSIGNED_EXPRESSION_TESTS =
|
"progressionMinValueToMinValue");
|
||||||
Arrays.asList("emptyDownto", "emptyRange", "oneElementDownTo", "oneElementRange", "reversedEmptyBackSequence",
|
|
||||||
"reversedEmptyRange");
|
|
||||||
|
|
||||||
static {
|
static {
|
||||||
for (String integerType : INTEGER_PRIMITIVES) {
|
for (String integerType : INTEGER_PRIMITIVES) {
|
||||||
@@ -234,12 +232,13 @@ public class GenerateRangesCodegenTestData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String fileName = testFunName + ".kt";
|
String fileName = testFunName + ".kt";
|
||||||
|
boolean isFirFailingUnsignedTest = FIR_FAILING_UNSIGNED_TESTS.contains(testFunName);
|
||||||
writeToFile(new File(AS_LITERAL_DIR, fileName), asLiteralBody.toString(), false, false);
|
writeToFile(new File(AS_LITERAL_DIR, fileName), asLiteralBody.toString(), false, false);
|
||||||
writeToFile(new File(AS_EXPRESSION_DIR, fileName), asExpressionBody.toString(), false, false);
|
writeToFile(new File(AS_EXPRESSION_DIR, fileName), asExpressionBody.toString(), false, false);
|
||||||
writeToFile(new File(UNSIGNED_AS_LITERAL_DIR, fileName), unsignedAsLiteralBody.toString(), true,
|
writeToFile(new File(UNSIGNED_AS_LITERAL_DIR, fileName), unsignedAsLiteralBody.toString(), true,
|
||||||
!FIR_PASSING_UNSIGNED_LITERAL_TESTS.contains(testFunName));
|
isFirFailingUnsignedTest);
|
||||||
writeToFile(new File(UNSIGNED_AS_EXPRESSION_DIR, fileName), unsignedAsExpressionBody.toString(), true,
|
writeToFile(new File(UNSIGNED_AS_EXPRESSION_DIR, fileName), unsignedAsExpressionBody.toString(), true,
|
||||||
!FIR_PASSING_UNSIGNED_EXPRESSION_TESTS.contains(testFunName));
|
isFirFailingUnsignedTest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user