diff --git a/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java b/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java index 4093bc9ec..90d9d2b07 100644 --- a/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java +++ b/unicodetools/src/main/java/org/unicode/text/UCD/TestUnicodeInvariants.java @@ -450,13 +450,13 @@ private static void equivalencesLine(String line, ParsePosition pp, int lineNumb "The implication ⇐ is " + rightImpliesLeftCounterexamples.isEmpty() + "."); } } - if (failure) { - for (var errorLine : errorMessage) { - println(errorLine); - } + for (var errorLine : errorMessage) { + println(errorLine); } errorMessage.addAll(counterexamples); - reportTestFailure(lineNumber, String.join("\n", errorMessage).replace('\t', ' ')); + if (failure) { + reportTestFailure(lineNumber, String.join("\n", errorMessage).replace('\t', ' ')); + } out.println(failure ? "" : "
"); for (String counterexample : counterexamples) { out.println("
");