This commit is contained in:
Grahame Grieve 2024-03-25 23:49:47 +11:00
parent c53730b038
commit 1842dfee41
1 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,9 @@ public class CompareUtilities extends BaseTestingUtilities {
}
private String presentExpected(String expected) {
if (expected.startsWith("$") && expected.endsWith("$")) {
if (expected == null) {
return "null";
} else if (expected.startsWith("$") && expected.endsWith("$")) {
if (expected.startsWith("$choice:")) {
return "Contains one of "+readChoices(expected.substring(8, expected.length()-1)).toString();
} else if (expected.startsWith("$fragments:")) {