Skip to content
Snippets Groups Projects
Commit d9131a0f authored by Johannes Mey's avatar Johannes Mey
Browse files

improve order of test and print AST in test

parent 3bb55829
No related branches found
No related tags found
No related merge requests found
......@@ -12,10 +12,7 @@ public class SimpleScopeTest extends ScopeAnalysisTest {
void test() {
ScopeAnalysis scopeAnalysis = new ScopeAnalysis();
Set<AbstractFinding> findings = scopeAnalysis.analyze("src/test/resources/simple", false, false);
Assertions.assertEquals(5, findings.size());
Set<AbstractFinding> findings = scopeAnalysis.analyze("src/test/resources/simple", true, false);
assertShadow(findings, "localVarA", 19, 11);
assertShadow(findings, "localVarB", 33, 12);
......@@ -23,7 +20,7 @@ public class SimpleScopeTest extends ScopeAnalysisTest {
assertShadow(findings, "fieldA", 29, 3);
assertShadow(findings, "fieldB", 36, 4);
Assertions.assertEquals(5, findings.size());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment