Skip to content

Commit 5bf62d7

Browse files
committed
remove graph test logging and clear subtype cache
1 parent 16ac13c commit 5bf62d7

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

de.peeeq.wurstscript/src/main/java/de/peeeq/wurstscript/validation/WurstValidator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public void validate(Collection<CompilationUnit> toCheck) {
6464
visitedFunctions = 0;
6565
heavyFunctions.clear();
6666
heavyBlocks.clear();
67+
SUBTYPE_MEMO.clear();
6768

6869
lightValidation(toCheck);
6970

de.peeeq.wurstscript/src/test/java/tests/utils/GraphInterpreterTestsSC.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ public class GraphInterpreterTestsSC {
2222

2323
@Property(maxInvocations = 50000)
2424
public void test(@From(GraphGen.class) Graph g) {
25-
System.out.println("iteration " + ++count);
26-
System.out.println(g);
27-
2825
List<List<Node>> components = g.findStronglyConnectedComponents(g.nodes);
2926

3027
boolean componentCycle = (components.stream().anyMatch(c -> c.size() > 1));
@@ -37,7 +34,6 @@ public void test(@From(GraphGen.class) Graph g) {
3734
public void simpleGraph() {
3835
boolean[][] adj = {{true,true},{true, false}};
3936
Graph g = new Graph(adj);
40-
System.out.println(g);
4137
List<List<Node>> components = g.findStronglyConnectedComponents(g.nodes);
4238
boolean componentCycle = (components.stream().anyMatch(c -> c.size() > 1));
4339
assertEquals(componentCycle, isCyclic(g));

0 commit comments

Comments
 (0)