Home
last modified time | relevance | path

Searched refs:USD (Results 1 - 13 of 13) sorted by relevance

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
H A DNumberFormatterApiTest.java66 private static final Currency USD = Currency.getInstance("USD"); field in NumberFormatterApiTest
251 "compact-short currency/USD", in notationCompact()
252 "K currency/USD", in notationCompact()
253 NumberFormatter.with().notation(Notation.compactShort()).unit(USD), in notationCompact()
267 "compact-short currency/USD unit-width-iso-code", in notationCompact()
268 "K currency/USD unit-width-iso-code", in notationCompact()
269 NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact()
271 "USD 88K", in notationCompact()
272 "USD 8. in notationCompact()
[all...]
H A DNumberRangeFormatterTest.java48 private static final Currency USD = Currency.getInstance("USD"); field in NumberRangeFormatterTest
218 .numberFormatterBoth(NumberFormatter.with().unit(USD)), in testCollapse()
234 .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse()
251 .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse()
268 .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse()
285 .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
H A DNumberFormatterApiTest.java67 private static final Currency USD = Currency.getInstance("USD"); field in NumberFormatterApiTest
252 "compact-short currency/USD", in notationCompact()
253 "K currency/USD", in notationCompact()
254 NumberFormatter.with().notation(Notation.compactShort()).unit(USD), in notationCompact()
268 "compact-short currency/USD unit-width-iso-code", in notationCompact()
269 "K currency/USD unit-width-iso-code", in notationCompact()
270 NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact()
272 "USD 88K", in notationCompact()
273 "USD 8. in notationCompact()
[all...]
H A DNumberRangeFormatterTest.java45 private static final Currency USD = Currency.getInstance("USD"); field in NumberRangeFormatterTest
216 .numberFormatterBoth(NumberFormatter.with().unit(USD)), in testCollapse()
232 .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse()
249 .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse()
266 .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse()
283 .numberFormatterBoth(NumberFormatter.with().unit(USD).precision(Precision.integer())), in testCollapse()
/third_party/icu/icu4c/source/test/intltest/
H A Dnumbertest_api.cpp37 : USD(u"USD", status), in NumberFormatterApiTest()
312 u"compact-short currency/USD", in notationCompact()
313 u"K currency/USD", in notationCompact()
314 NumberFormatter::with().notation(Notation::compactShort()).unit(USD), in notationCompact()
328 u"compact-short currency/USD unit-width-iso-code", in notationCompact()
329 u"K currency/USD unit-width-iso-code", in notationCompact()
331 .unit(USD) in notationCompact()
334 u"USD 88K", in notationCompact()
335 u"USD 8. in notationCompact()
[all...]
H A Dnumbertest_range.cpp23 : USD(u"USD", status), in NumberRangeFormatterTest()
223 .numberFormatterBoth(NumberFormatter::with().unit(USD)), in testCollapse()
239 .numberFormatterBoth(NumberFormatter::with().unit(USD).precision(Precision::integer())), in testCollapse()
256 .numberFormatterBoth(NumberFormatter::with().unit(USD).precision(Precision::integer())), in testCollapse()
273 .numberFormatterBoth(NumberFormatter::with().unit(USD).precision(Precision::integer())), in testCollapse()
290 .numberFormatterBoth(NumberFormatter::with().unit(USD).precision(Precision::integer())), in testCollapse()
849 .numberFormatterBoth(NumberFormatter::with().unit(USD)); in testCopyMove()
924 .numberFormatterBoth(NumberFormatter::with().unit(USD)); in testGetDecimalNumbers()
H A Dnumbertest.h110 CurrencyUnit USD; member in NumberFormatterApiTest
335 CurrencyUnit USD; member in NumberRangeFormatterTest
H A Dnumfmtst.cpp77 static const UChar ISO_CURRENCY_USD[] = {0x55, 0x53, 0x44, 0}; // "USD"
874 if (s != "USD 1,234.56") dataerrln((UnicodeString)"FAIL: Expected USD 1,234.56"); in TestCurrencySign()
878 if (s != "USD -1,234.56") dataerrln((UnicodeString)"FAIL: Expected USD -1,234.56"); in TestCurrencySign()
1958 UChar USD[4]; in TestRegCurrency() local
1959 ucurr_forLocale("en_US", USD, 4, &status); in TestRegCurrency()
1987 if (u_strcmp(USD, TMP) != 0) { in TestRegCurrency()
1988 errln("FAIL: didn't return USD for en_US after unregister of en_US"); in TestRegCurrency()
1993 if (u_strcmp(USD, TM in TestRegCurrency()
2004 static const UChar USD[] = {0x55, 0x53, 0x44, 0}; /*USD*/ TestCurrencyNames() local
2193 static const UChar USD[] = u"USD"; TestCurrencyUnit() local
2353 static const UChar USD[] = {85, 83, 68, 0}; /*USD*/ TestCurrencyAmount() local
8605 const UChar USD[] = {0x55, 0x53, 0x44, 0x0}; Test11376_getAndSetPositivePrefix() local
8625 const UChar USD[] = {0x55, 0x53, 0x44, 0x0}; Test11376_getAndSetPositivePrefix() local
8734 static UChar USD[] = {0x55, 0x53, 0x44, 0x0}; Test11649_toPatternWithMultiCurrency() local
9384 static const UChar USD[] = u"USD"; Test11649_DecFmtCurrencies() local
[all...]
H A Dloctest.cpp1290 UnicodeString dollarStr("USD", ""), euroStr("EUR", ""), genericStr((UChar)0x00a4), resultStr; in TestEuroSupport()
1297 errcheckln(status, "Fail: en_US didn't return USD - %s", u_errorName(status)); in TestEuroSupport()
1328 errln("Fail: ucurr_forLocale(en_US@currency=euro) != USD - %s", u_errorName(status)); in TestEuroSupport()
5352 UChar USD[4]; in TestCurrencyByDate() local
5353 ucurr_forLocaleAndDate("en_US", date, 1, USD, 4, &status); in TestCurrencyByDate()
5359 if (u_strcmp(USD, TMP) != 0) { in TestCurrencyByDate()
5360 errcheckln(status, "Fail: en_US didn't return USD - %s", u_errorName(status)); in TestCurrencyByDate()
5363 if (u_strcmp(USD, TMP) != 0) { in TestCurrencyByDate()
H A Dmeasfmttest.cpp4362 UChar USD[4] = {}; in TestCurrencies() local
4363 u_uastrcpy(USD, "USD"); in TestCurrencies()
4365 CurrencyUnit USD_unit(USD, status); in TestCurrencies()
4366 assertEquals("Currency Unit", USD, USD_unit.getISOCurrency()); in TestCurrencies()
4370 CurrencyAmount USD_1(1.0, USD, status); in TestCurrencies()
4371 assertEquals("Currency Code", USD, USD_1.getISOCurrency()); in TestCurrencies()
4372 CurrencyAmount USD_2(2.0, USD, status); in TestCurrencies()
4373 CurrencyAmount USD_NEG_1(-1.0, USD, status); in TestCurrencies()
4389 verifyFormat("TestCurrenciesShort", fmt, &USD_NEG_1, 1, "-USD\\u00A0 in TestCurrencies()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DCurrencyTest.java55 Currency usd = Currency.getInstance("USD"); in TestAPI()
60 errln("FAIL: USD == JPY"); in TestAPI()
63 errln("FAIL: USD == (String)"); in TestAPI()
66 errln("FAIL: USD == (null)"); in TestAPI()
69 errln("FAIL: USD != USD"); in TestAPI()
199 // USD { "US$", "US Dollar" } // 04/04/1792- in TestNames()
205 Currency USD = Currency.getInstance("USD"); in TestNames()
210 assertEquals("USD in TestNames()
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DCurrencyTest.java52 Currency usd = Currency.getInstance("USD"); in TestAPI()
57 errln("FAIL: USD == JPY"); in TestAPI()
60 errln("FAIL: USD == (String)"); in TestAPI()
63 errln("FAIL: USD == (null)"); in TestAPI()
66 errln("FAIL: USD != USD"); in TestAPI()
196 // USD { "US$", "US Dollar" } // 04/04/1792- in TestNames()
202 Currency USD = Currency.getInstance("USD"); in TestNames()
207 assertEquals("USD in TestNames()
[all...]
/third_party/json/tests/src/
H A Dunit-json_pointer.cpp412 {"currency", "USD"},
432 {"/object/currency", "USD"},
533 {"currency", "USD"},
609 {"currency", "USD"},

Completed in 29 milliseconds