MeasureUnit baseUnit;
processSingleUnit(targetUnits[i], convertUnitsBundle.getAlias(), convertSink, &baseUnit, status);
if (target.getComplexity(status) == UMEASURE_UNIT_SEQUENCE) {
- // WIP/TODO(hugovdm): add consistency checks.
if (baseUnit != sourceBaseUnit) {
status = U_ILLEGAL_ARGUMENT_ERROR;
return result;
// fprintf(stderr, "<%s> x <%s> => ",
// targetBaseUnit.getIdentifier(),
// baseUnit.getIdentifier());
+ //
+ // Expected: <kilogram-square-meter-per-meter-square-second>
targetBaseUnit = targetBaseUnit.product(baseUnit, status);
// fprintf(stderr, "<%s> - Status: %s\n",
// targetBaseUnit.getIdentifier(), u_errorName(status));
// {"therm-us-per-meter",
// "joule-per-meter",
// {"therm-us", "joule", "meter", NULL, NULL},
- // "kilogram-meter-per-square-second"},
+ // "kilogram-square-meter-per-square-second"},
// TODO: include capacitance test case with base unit:
// pow4-second-square-ampere-per-kilogram-square-meter;