aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luni/src/test/java/libcore/highmemorytest/java/util/CurrencyTest.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/luni/src/test/java/libcore/highmemorytest/java/util/CurrencyTest.java b/luni/src/test/java/libcore/highmemorytest/java/util/CurrencyTest.java
index e31030205dc..3467ced0583 100644
--- a/luni/src/test/java/libcore/highmemorytest/java/util/CurrencyTest.java
+++ b/luni/src/test/java/libcore/highmemorytest/java/util/CurrencyTest.java
@@ -45,14 +45,23 @@ public class CurrencyTest {
@Test
public void test_currencyCodeIcuConsistency() {
+ String countryCode = locale.getCountry();
// java.util.Currency.getCurrency is time-sensitive. And Croatia doesn't use Euro until
// 2023/1/1. https://unicode-org.atlassian.net/browse/CLDR-16061
// We skip the test until Feb 2023.
- if ("HR".equals(locale.getCountry()) &&
+ if ("HR".equals(countryCode) &&
LocalDateTime.of(2023, 2, 1, 0, 0).atZone(ZoneId.of("GMT")).toInstant()
.isAfter(Instant.now())) {
return;
}
+ // https://unicode-org.atlassian.net/browse/CLDR-17274
+ // Effective 2025-03-31, CuraƧao and Sint Maarten are replacing ANG (Netherlands
+ // Antillean Guilder) with XCG (Caribbean Guilder).
+ if (("CW".equals(countryCode) || "SX".equals(countryCode)) &&
+ LocalDateTime.of(2025, 5, 1, 0, 0).atZone(ZoneId.of("GMT")).toInstant()
+ .isAfter(Instant.now())) {
+ return;
+ }
Currency javaCurrency = getCurrency(locale);
if (javaCurrency == null) {
return;