assert_eq(ret, I18N_ERROR_NONE);
const char *ref_type = "pressure";
- const char *ref_subtype = "pound-force-per-square-inch";
+ const char *ref_subtype_latest = "pound-force-per-square-inch";
+ const char *ref_subtype_old = "pound-per-square-inch";
assert(!strcmp(type, ref_type));
- assert(!strcmp(subtype, ref_subtype));
+ assert(!strcmp(subtype, ref_subtype_latest) || !strcmp(subtype, ref_subtype_old));
return 0;
}
assert_eq(ret, I18N_ERROR_NONE);
const char *ref_type = "pressure";
- const char *ref_subtype = "millimeter-ofhg";
+ const char *ref_subtype_latest = "millimeter-ofhg";
+ const char *ref_subtype_old = "millimeter-of-mercury";
assert(!strcmp(type, ref_type));
- assert(!strcmp(subtype, ref_subtype));
+ assert(!strcmp(subtype, ref_subtype_latest) || !strcmp(subtype, ref_subtype_old));
return 0;
}
assert_eq(ret, I18N_ERROR_NONE);
const char *ref_type = "pressure";
- const char *ref_subtype = "inch-ofhg";
+ const char *ref_subtype_latest = "inch-ofhg";
+ const char *ref_subtype_old = "inch-hg";
assert(!strcmp(type, ref_type));
- assert(!strcmp(subtype, ref_subtype));
+ assert(!strcmp(subtype, ref_subtype_latest) || !strcmp(subtype, ref_subtype_old));
return 0;
}
assert_eq(ret, I18N_ERROR_NONE);
const char *ref_type = "acceleration";
- const char *ref_subtype = "meter-per-square-second";
+ const char *ref_subtype_latest = "meter-per-square-second";
+ const char *ref_subtype_old = "meter-per-second-squared";
assert(!strcmp(type, ref_type));
- assert(!strcmp(subtype, ref_subtype));
+ assert(!strcmp(subtype, ref_subtype_latest) || !strcmp(subtype, ref_subtype_old));
return 0;
}