Skip to content

Commit 0901815

Browse files
committed
Messages for assertTrues
1 parent c8e7675 commit 0901815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spoon-control-flow/src/test/java/fr/inria/controlflow/ForwardFlowBuilderVisitorTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public void testSwitchImplicitDefault() throws Exception {
180180
ControlFlowNode entryNode = pathHelper.findNodeByString(graph, "int b = 0");
181181
ControlFlowNode caseNode = pathHelper.findNodeByString(graph, "b = 1");
182182
boolean canAvoid = pathHelper.canAvoidNode(entryNode, caseNode);
183-
assertTrue(canAvoid);
183+
assertTrue(canAvoid, "Path for implicit default case missing");
184184
}
185185

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

196196
//Test some mixed conditions

0 commit comments

Comments
 (0)