File tree 1 file changed +2
-2
lines changed
spoon-control-flow/src/test/java/fr/inria/controlflow
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 {
180
180
ControlFlowNode entryNode = pathHelper .findNodeByString (graph , "int b = 0" );
181
181
ControlFlowNode caseNode = pathHelper .findNodeByString (graph , "b = 1" );
182
182
boolean canAvoid = pathHelper .canAvoidNode (entryNode , caseNode );
183
- assertTrue (canAvoid );
183
+ assertTrue (canAvoid , "Path for implicit default case missing" );
184
184
}
185
185
186
186
@ Test
@@ -190,7 +190,7 @@ public void testMultipleCaseExpressions() throws Exception {
190
190
ControlFlowPathHelper pathHelper = new ControlFlowPathHelper ();
191
191
ControlFlowNode startNode = pathHelper .findNodeByString (graph , "int b = 0" );
192
192
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" );
194
194
}
195
195
196
196
//Test some mixed conditions
You can’t perform that action at this time.
0 commit comments