File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spoon-control-flow/src/test/java/fr/inria/controlflow Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments