Skip to content

Commit a51dc3e

Browse files
committed
Fix output checking
1 parent 81d9acf commit a51dc3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

icu4c/source/test/intltest/messageformat2test_utils.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ class TestUtils {
274274
if (!testCase.lineNumberAndOffsetMatch(parseError.line, parseError.offset)) {
275275
failWrongOffset(tmsg, testCase, parseError.line, parseError.offset);
276276
}
277+
if (testCase.expectSuccess() && !testCase.outputMatches(result)) {
278+
failWrongOutput(tmsg, testCase, result);
279+
}
277280
if (U_FAILURE(errorCode) && !testCase.expectSuccess()
278281
&& testCase.expectedErrorCode() != U_MF_SYNTAX_ERROR) {
279282
// Re-run the formatter if there was an error,

0 commit comments

Comments
 (0)