Lines Matching defs:currency
224 log_verbose("\nTesting unum_open(currency,NULL,status)\n");
229 log_err("Error: could not create NumberFormat using \n unum_open(currency, NULL, &status) %s\n",
232 log_verbose("\nTesting unum_open(currency, frenchlocale, status)\n");
235 log_err("Error: could not create NumberFormat using unum_open(currency, french, &status): %s\n",
416 log_err("Fail: Error in parsing currency, got %f, expected %f\n", d1, a1);
418 log_verbose("Pass: parsed currency amount successfully\n");
421 log_verbose("Pass: parsed correct currency\n");
423 log_err("Fail: parsed incorrect currency\n");
1711 /* Get a non-existent currency and make sure it returns the correct currency code. */
1712 format = unum_open(UNUM_CURRENCY, NULL, 0, "th_TH@currency=QQQ", NULL, &status);
1714 log_data_err("unum_open did not return expected result for non-existent requested currency: '%s' (Are you missing data?)\n", u_errorName(status));
1723 log_err("unum_open set the currency to QQQ\n");
1909 UChar currency[8];
1917 currency[0]=0;
1933 currency,
1936 u_austrcpy(acurrency, currency);
1939 log_err("unum_parseDoubleCurrency should have failed with pos %d, but gave: value %.9f, err %s, pos=%d, currency [%s]\n",
1942 log_verbose("unum_parseDoubleCurrency failed, value %.9f err %s, pos %d, currency [%s]\n", d, u_errorName(status), pos, acurrency);
2565 // currency amount to be formatted,
2566 // currency ISO code to be formatted,
2595 // test locale without currency information
2724 * currency ISO code to be formatted,
2759 log_err("FAIL: currency usage attribute is not UNUM_CURRENCY_STANDARD\n");
2766 log_err("FAIL: currency usage attribute is not UNUM_CASH_CURRENCY\n");
3171 UChar currency[200] = {0};
3177 unum_parseDoubleCurrency(theFormatter, input, -1, &pos, currency, &status);
3604 if (!assertSuccess("Formatting currency decimal", &status)) {