Bug fixes, TestComplete in 'syntaxtreegenerator' runs without error

This commit is contained in:
luca9913 2023-06-24 18:54:31 +02:00
parent 168a499811
commit d48b888075
2 changed files with 1 additions and 4 deletions

View File

@ -284,9 +284,6 @@ public class StatementGenerator {
genericArgs = null; genericArgs = null;
if (createdname.typeArgumentsOrDiamond() != null) if (createdname.typeArgumentsOrDiamond() != null)
genericArgs = createdname.typeArgumentsOrDiamond().typeArguments(); genericArgs = createdname.typeArgumentsOrDiamond().typeArguments();
if (genericArgs != null) {
throw new NotImplementedException();
}
IdentifierContext identifier = createdname.identifier(); IdentifierContext identifier = createdname.identifier();
return (RefType) TypeGenerator.convertTypeName(identifier.getText(), genericArgs, identifier.getStart(), reg, generics); return (RefType) TypeGenerator.convertTypeName(identifier.getText(), genericArgs, identifier.getStart(), reg, generics);
} }

View File

@ -536,7 +536,7 @@ public class TestComplete {
@Test @Test
public void subMatTest() { public void subMatTest() {
try { try {
FileInputStream fileIn = new FileInputStream(javFiles.get("SimpSubMatrixeCycle")[1]); FileInputStream fileIn = new FileInputStream(javFiles.get("SubMatrix")[1]);
String expectedAST = new String(fileIn.readAllBytes()); String expectedAST = new String(fileIn.readAllBytes());
fileIn.close(); fileIn.close();
expectedAST = expectedAST.replaceAll("TPH [A-Z]+", "TPH"); expectedAST = expectedAST.replaceAll("TPH [A-Z]+", "TPH");