for (const auto &testCase : testCases) {
MeasureUnitImpl inputImpl = MeasureUnitImpl::forIdentifier(testCase.input, status);
+ if (status.errIfFailureAndReset()) {
+ continue;
+ }
MeasureUnitImpl outputImpl = MeasureUnitImpl::forIdentifier(testCase.output, status);
+ if (status.errIfFailureAndReset()) {
+ continue;
+ }
ComplexUnitsConverter converter(inputImpl, outputImpl, conversionRates, status);
+ if (status.errIfFailureAndReset()) {
+ continue;
+ }
auto actual = converter.convert(testCase.inputValue, nullptr, status);
+ if (status.errIfFailureAndReset()) {
+ continue;
+ }
+ if (actual.length() < testCase.expectedCount) {
+ errln("converter.convert(...) returned too few Measures");
+ continue;
+ }
for (int i = 0; i < testCase.expectedCount; i++) {
assertEquals(testCase.msg, testCase.expected[i].getUnit().getIdentifier(),