Skip to content

Commit

Permalink
Messages for assertTrues
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Pine committed Apr 5, 2024
1 parent bb7ebc7 commit af37cf6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void testSwitchImplicitDefault() throws Exception {
ControlFlowNode entryNode = pathHelper.findNodeByString(graph, "int b = 0");
ControlFlowNode caseNode = pathHelper.findNodeByString(graph, "b = 1");
boolean canAvoid = pathHelper.canAvoidNode(entryNode, caseNode);
assertTrue(canAvoid);
assertTrue(canAvoid, "Path for implicit default case missing");
}

@Test
Expand All @@ -190,7 +190,7 @@ public void testMultipleCaseExpressions() throws Exception {
ControlFlowPathHelper pathHelper = new ControlFlowPathHelper();
ControlFlowNode startNode = pathHelper.findNodeByString(graph, "int b = 0");
List<List<ControlFlowNode>> paths = pathHelper.paths(startNode);
assertTrue(paths.size() > 2);
assertTrue(paths.size() > 2, "Not enough paths. Possibly missing different paths from multiple expressions for a case");
}

//Test some mixed conditions
Expand Down

0 comments on commit af37cf6

Please sign in to comment.