File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
liquidjava-verifier/src/main/java/liquidjava/diagnostics/errors Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 11package liquidjava .diagnostics .errors ;
22
3+ import java .util .Arrays ;
34import java .util .List ;
45import java .util .stream .Collectors ;
56
@@ -42,9 +43,10 @@ public String getCounterExampleString() {
4243
4344 // filter out assignments of variables that do not appear in the found value
4445 String foundValue = found .getValue ().toString ();
46+ List <String > foundTokens = Arrays .asList (foundValue .split ("[^a-zA-Z0-9_#]+" ));
4547 List <String > relevantAssignments = counterexample .assignments ().stream ().filter (a -> {
4648 String varName = a .contains (" == " ) ? a .substring (0 , a .indexOf (" == " )).trim () : a ;
47- return foundValue .contains (varName );
49+ return foundTokens .contains (varName );
4850 }).collect (Collectors .toList ());
4951
5052 if (relevantAssignments .isEmpty ())
You can’t perform that action at this time.
0 commit comments