- UnicodeString result;
- fmt.format(4.33, result);
- assertSuccess("", status);
- assertEquals("", "QU**43,3EE-1", result, TRUE);
+ if (U_FAILURE(status)) {
+ dataerrln("Error creating DecimalFormat - %s", u_errorName(status));
+ } else {
+ UnicodeString result;
+ fmt.format(4.33, result);
+ assertSuccess("", status);
+ assertEquals("", "QU**43,3EE-1", result, TRUE);
+ }