Skip to content

Commit 2236788

Browse files
jgardn3rcirras
authored andcommitted
Ensure ControlFlowGraph tests completely assert block terminators
1 parent e138d7b commit 2236788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

delphi-frontend/src/test/java/au/com/integradev/delphi/cfg/checker/BlockChecker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public void check(final Block block) {
8585
if (terminatorChecker != null) {
8686
terminatorChecker.check(block);
8787
} else {
88-
assertThat(block.getSuccessors())
88+
assertThat(block)
8989
.withFailMessage("%s should have its terminator specified", getBlockDisplay(block))
9090
.isNotInstanceOf(Terminated.class);
9191
}

0 commit comments

Comments
 (0)