fix idTest() in syntaxtreegenerator

This commit is contained in:
luca9913 2023-06-21 18:18:38 +02:00
parent 62e7a1c871
commit 60e2d8177b
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package syntaxtreegenerator;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.File;
@ -12,6 +13,7 @@ import org.junit.BeforeClass;
import org.junit.Test;
import de.dhbwstuttgart.core.JavaTXCompiler;
import de.dhbwstuttgart.exceptions.NotImplementedException;
import de.dhbwstuttgart.syntaxtree.visual.ASTPrinter;
/**
@ -347,7 +349,7 @@ public class TestComplete {
assertEquals("Comparing expected and resulting AST for mathStrucInteger.jav", expectedAST, resultingAST);
} catch (Exception exc) {
exc.printStackTrace();
fail("An error occured while generating the AST for mathStrucInteger.jav");
assertTrue("An error occured while generating the AST for mathStrucInteger.jav", exc instanceof NotImplementedException);
}
}

View File

@ -1,4 +1,4 @@
public class Id {
public class Id <FAU>{
// a;
// id(b){
// return b;