Revert test case directory: singleFeatureTests

This commit is contained in:
Purplumbi504 2024-07-04 21:11:21 +02:00
parent c315966219
commit 24407a5c1c
2 changed files with 5 additions and 7 deletions

View File

@ -438,9 +438,7 @@ class AstBuilderTest {
BlockNode testMethod3Block = new BlockNode();
testMethod3Block.addStatement(new LocalVariableDeclarationNode(new ReferenceType("SelfReference"),"selfReference1", "=", new UnaryNode(new NewDeclarationNode("SelfReference")))); // Assing einfach "=" ?
MemberAccessNode methodAccess = new MemberAccessNode(false);
methodAccess.addIdentifier("selfReference1");
methodAccess.addIdentifier("selfReference");
TargetNode methodTarget = new TargetNode(methodAccess);
TargetNode methodTarget = new TargetNode("selfReference1");
testMethod3Block.addStatement(new ReturnNode(new UnaryNode(new MethodCallNode(methodTarget,"testMethod1"))));
MethodNode testMethod3 = new MethodNode("public", new BaseType(TypeEnum.INT), false, "testMethod3", testMethod3Block);

View File

@ -12,7 +12,7 @@ class SelfReference{
int testMethod3() {
SelfReference selfReference1 = new SelfReference();
return selfReference1.selfReference.testMethod1();
return selfReference1.testMethod1();
}
}