Skip to content

Commit

Permalink
CLDR-17751 add ZWG, drop ZWL
Browse files Browse the repository at this point in the history
- pull in full ISO update
- exclude ZWG from coverage for v46 (will pickup next time)
  • Loading branch information
srl295 committed Aug 14, 2024
1 parent 5ed8b94 commit 901d8bf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
3 changes: 2 additions & 1 deletion common/bcp47/currency.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,9 @@ For terms of use, see http://www.unicode.org/copyright.html
<type name="zrn" description="Zairean New Zaire (1993-1998)"/>
<type name="zrz" description="Zairean Zaire (1971-1993)"/>
<type name="zwd" description="Zimbabwean Dollar (1980-2008)"/>
<type name="zwl" description="Zimbabwean Dollar (2009)" since="1.9"/>
<type name="zwl" description="Zimbabwean Dollar (2009-2024)" since="1.9"/>
<type name="zwr" description="Zimbabwean Dollar (2008)" since="1.9"/>
<type name="zwg" description="Zimbabwean Gold" since="46"/>
</key>
</keyword>
</ldmlBCP47>
5 changes: 2 additions & 3 deletions common/validity/currency.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<supplementalData>
<version number="$Revision$"/>
<idValidity>
<id type='currency' idStatus='regular'> <!-- 154 items -->
<id type='currency' idStatus='regular'> <!-- 155 items -->
AED AFN ALL AMD ANG AOA ARS AUD AWG AZN
BAM BBD BDT BGN BHD BIF BMD BND BOB BRL BSD BTN BWP BYN BZD
CAD CDF CHF CLP CNY COP CRC CUP CVE CZK
Expand All @@ -38,8 +38,7 @@
WST
XAF XCD XCG XOF XPF
YER
ZAR ZMW
ZWG
ZAR ZMW ZWG
</id>
<!-- Deprecated values are those that are not legal tender in some country after 2024.
More detailed usage information needed for some implementations is in supplemental data. -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ISO_4217 Pblshd="2024-01-01">
<ISO_4217 Pblshd="2024-06-25">
<CcyTbl>
<CcyNtry>
<CtryNm>AFGHANISTAN</CtryNm>
Expand Down Expand Up @@ -434,8 +434,8 @@
</CcyNtry>
<CcyNtry>
<CtryNm>CURAÇAO</CtryNm>
<CcyNm>Caribbean Guilder</CcyNm>
<Ccy>XCG</Ccy>
<CcyNm>Netherlands Antillean Guilder</CcyNm>
<Ccy>ANG</Ccy>
<CcyNbr>532</CcyNbr>
<CcyMnrUnts>2</CcyMnrUnts>
</CcyNtry>
Expand Down Expand Up @@ -1502,8 +1502,8 @@
</CcyNtry>
<CcyNtry>
<CtryNm>SINT MAARTEN (DUTCH PART)</CtryNm>
<CcyNm>Caribbean Guilder</CcyNm>
<Ccy>XCG</Ccy>
<CcyNm>Netherlands Antillean Guilder</CcyNm>
<Ccy>ANG</Ccy>
<CcyNbr>532</CcyNbr>
<CcyMnrUnts>2</CcyMnrUnts>
</CcyNtry>
Expand Down Expand Up @@ -1882,6 +1882,13 @@
<CcyNbr>932</CcyNbr>
<CcyMnrUnts>2</CcyMnrUnts>
</CcyNtry>
<CcyNtry>
<CtryNm>ZIMBABWE</CtryNm>
<CcyNm>Zimbabwe Gold</CcyNm>
<Ccy>ZWG</Ccy>
<CcyNbr>924</CcyNbr>
<CcyMnrUnts>2</CcyMnrUnts>
</CcyNtry>
<CcyNtry>
<CtryNm>ZZ01_Bond Markets Unit European_EURCO</CtryNm>
<CcyNm>Bond Markets Unit European Composite Unit (EURCO)</CcyNm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assumptions.assumeFalse;
import static org.junit.jupiter.params.provider.Arguments.arguments;

import java.util.Set;
Expand Down Expand Up @@ -98,6 +99,9 @@ public void testModernCurrencies(final String code) {
"//ldml/numbers/currencies/currency[@type=\"%s\"]/symbol", code),
"und");
final Level expect = Level.MODERN;
assumeFalse(
code.equals("ZWL") && CLDRFile.GEN_VERSION.equals("46"),
"Skipping ZWL for CLDR 46");
assertTrue(
expect.isAtLeast(l),
() ->
Expand Down

0 comments on commit 901d8bf

Please sign in to comment.