mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-05 21:45:37 +00:00
ICU-21685 In list of currencies from ucurr_openISOCurrencies(): add VES, remove EQE
This commit is contained in:
parent
2cf1d23c6c
commit
6244d57559
4 changed files with 25 additions and 13 deletions
|
@ -1791,7 +1791,6 @@ static const struct CurrencyList {
|
|||
{"ECV", UCURR_UNCOMMON|UCURR_DEPRECATED},
|
||||
{"EEK", UCURR_COMMON|UCURR_DEPRECATED},
|
||||
{"EGP", UCURR_COMMON|UCURR_NON_DEPRECATED},
|
||||
{"EQE", UCURR_COMMON|UCURR_DEPRECATED}, // questionable, remove?
|
||||
{"ERN", UCURR_COMMON|UCURR_NON_DEPRECATED},
|
||||
{"ESA", UCURR_UNCOMMON|UCURR_DEPRECATED},
|
||||
{"ESB", UCURR_UNCOMMON|UCURR_DEPRECATED},
|
||||
|
@ -1967,6 +1966,7 @@ static const struct CurrencyList {
|
|||
{"UZS", UCURR_COMMON|UCURR_NON_DEPRECATED},
|
||||
{"VEB", UCURR_COMMON|UCURR_DEPRECATED},
|
||||
{"VEF", UCURR_COMMON|UCURR_NON_DEPRECATED},
|
||||
{"VES", UCURR_COMMON|UCURR_NON_DEPRECATED},
|
||||
{"VND", UCURR_COMMON|UCURR_NON_DEPRECATED},
|
||||
{"VNN", UCURR_COMMON|UCURR_DEPRECATED},
|
||||
{"VUV", UCURR_COMMON|UCURR_NON_DEPRECATED},
|
||||
|
|
|
@ -89,6 +89,15 @@ static void TestEnumList(void) {
|
|||
expectInList("UYW", UCURR_UNCOMMON, TRUE);
|
||||
expectInList("UYW", UCURR_DEPRECATED, FALSE);
|
||||
expectInList("UYW", UCURR_NON_DEPRECATED, TRUE);
|
||||
|
||||
// ICU-21685
|
||||
expectInList("VES", UCURR_ALL, TRUE);
|
||||
expectInList("VES", UCURR_COMMON, TRUE);
|
||||
expectInList("VES", UCURR_UNCOMMON, FALSE);
|
||||
expectInList("VES", UCURR_DEPRECATED, FALSE);
|
||||
expectInList("VES", UCURR_NON_DEPRECATED, TRUE);
|
||||
|
||||
expectInList("EQE", UCURR_ALL, FALSE);
|
||||
}
|
||||
|
||||
static void TestEnumListReset(void) {
|
||||
|
|
25
icu4c/source/test/testdata/structLocale.txt
vendored
25
icu4c/source/test/testdata/structLocale.txt
vendored
|
@ -675,10 +675,6 @@ structLocale:table(nofallback){
|
|||
"",
|
||||
"",
|
||||
}
|
||||
EQE{
|
||||
"",
|
||||
"",
|
||||
}
|
||||
ERN{
|
||||
"",
|
||||
"",
|
||||
|
@ -1379,6 +1375,10 @@ structLocale:table(nofallback){
|
|||
"",
|
||||
"",
|
||||
}
|
||||
VES{
|
||||
"",
|
||||
"",
|
||||
}
|
||||
VND{
|
||||
"",
|
||||
"",
|
||||
|
@ -1636,6 +1636,7 @@ structLocale:table(nofallback){
|
|||
UYU{""}
|
||||
UYW{""}
|
||||
VEF{""}
|
||||
VES{""}
|
||||
VND{""}
|
||||
XCD{""}
|
||||
ZAR{""}
|
||||
|
@ -2336,14 +2337,6 @@ structLocale:table(nofallback){
|
|||
many{""}
|
||||
other{""}
|
||||
}
|
||||
EQE{
|
||||
zero{""}
|
||||
one{""}
|
||||
two{""}
|
||||
few{""}
|
||||
many{""}
|
||||
other{""}
|
||||
}
|
||||
ERN{
|
||||
zero{""}
|
||||
one{""}
|
||||
|
@ -3720,6 +3713,14 @@ structLocale:table(nofallback){
|
|||
many{""}
|
||||
other{""}
|
||||
}
|
||||
VES{
|
||||
zero{""}
|
||||
one{""}
|
||||
two{""}
|
||||
few{""}
|
||||
many{""}
|
||||
other{""}
|
||||
}
|
||||
VND{
|
||||
zero{""}
|
||||
one{""}
|
||||
|
|
|
@ -579,6 +579,8 @@ public class CurrencyTest extends TestFmwk {
|
|||
}
|
||||
List<String> currencies = metainfo.currencies(null);
|
||||
assertTrue("Full currencies list should include UYW", currencies.contains("UYW")); // ICU-21622
|
||||
assertTrue("Full currencies list should include VES", currencies.contains("VES")); // ICU-21685
|
||||
assertFalse("Full currencies list should not include EQE", currencies.contains("EQE")); // ICU-21685
|
||||
}
|
||||
|
||||
// Coverage-only test of the CurrencyMetaInfo class
|
||||
|
|
Loading…
Add table
Reference in a new issue