Revert test case directory: singleFeatureTests
This commit is contained in:
parent
c315966219
commit
24407a5c1c
@ -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);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
class SelfReference{
|
||||
class SelfReference {
|
||||
|
||||
SelfReference selfReference;
|
||||
|
||||
@ -10,9 +10,9 @@ class SelfReference{
|
||||
return 1;
|
||||
}
|
||||
|
||||
int testMethod3(){
|
||||
int testMethod3() {
|
||||
SelfReference selfReference1 = new SelfReference();
|
||||
return selfReference1.selfReference.testMethod1();
|
||||
return selfReference1.testMethod1();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user