From 1a34c44fc88f62469b6c66cd8c80037753c1e19f Mon Sep 17 00:00:00 2001 From: Miroslav Pokorny Date: Thu, 5 Sep 2024 15:21:48 +1000 Subject: [PATCH] https://github.com/mP1/walkingkooka/pull/2773 SortedSets & ImmutableSortedSet - https://github.com/mP1/walkingkooka/pull/2773 - SortedSets & ImmutableSortedSet --- .../walkingkooka/j2cl/java/text/DateFormatSymbolsTest.java | 6 +++--- .../j2cl/java/text/DecimalFormatSymbolsTest.java | 6 +++--- .../java/walkingkooka/j2cl/java/text/NumberFormatTest.java | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/test/java/walkingkooka/j2cl/java/text/DateFormatSymbolsTest.java b/src/test/java/walkingkooka/j2cl/java/text/DateFormatSymbolsTest.java index fbd2f1b..5675323 100644 --- a/src/test/java/walkingkooka/j2cl/java/text/DateFormatSymbolsTest.java +++ b/src/test/java/walkingkooka/j2cl/java/text/DateFormatSymbolsTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; import walkingkooka.HashCodeEqualsDefinedTesting2; import walkingkooka.ToStringTesting; -import walkingkooka.collect.set.Sets; +import walkingkooka.collect.set.SortedSets; import walkingkooka.j2cl.locale.WalkingkookaLanguageTag; import walkingkooka.predicate.Predicates; @@ -46,7 +46,7 @@ public final class DateFormatSymbolsTest extends JavaTextTestCase comparator = (l, r) -> l.toLanguageTag().compareTo(r.toLanguageTag()); - final Set jdk = Sets.sorted(comparator); + final Set jdk = SortedSets.tree(comparator); for(final Locale locale : java.text.DateFormatSymbols.getAvailableLocales()) { switch(locale.toString()) { case "th_TH_TH_#u-nu-thai": @@ -58,7 +58,7 @@ public void testGetAvailableLocales() { } } - final Set emulated = Sets.sorted(comparator); + final Set emulated = SortedSets.tree(comparator); emulated.addAll(Arrays.asList(DateFormatSymbols.getAvailableLocales())); this.checkEquals(jdk, emulated); diff --git a/src/test/java/walkingkooka/j2cl/java/text/DecimalFormatSymbolsTest.java b/src/test/java/walkingkooka/j2cl/java/text/DecimalFormatSymbolsTest.java index 7d28240..ca0e479 100644 --- a/src/test/java/walkingkooka/j2cl/java/text/DecimalFormatSymbolsTest.java +++ b/src/test/java/walkingkooka/j2cl/java/text/DecimalFormatSymbolsTest.java @@ -21,7 +21,7 @@ import org.junit.jupiter.api.Test; import walkingkooka.HashCodeEqualsDefinedTesting2; import walkingkooka.ToStringTesting; -import walkingkooka.collect.set.Sets; +import walkingkooka.collect.set.SortedSets; import walkingkooka.j2cl.java.io.string.StringDataInputDataOutput; import walkingkooka.j2cl.java.text.generated.DateFormatSymbolsProvider; import walkingkooka.j2cl.locale.WalkingkookaLanguageTag; @@ -66,7 +66,7 @@ public void testRegisterThenDataInputThrowsEOF() throws Exception { public void testGetAvailableLocales() { final Comparator comparator = (l, r) -> l.toLanguageTag().compareTo(r.toLanguageTag()); - final Set jdk = Sets.sorted(comparator); + final Set jdk = SortedSets.tree(comparator); for (final Locale locale : java.text.DateFormatSymbols.getAvailableLocales()) { switch (locale.toString()) { case "th_TH_TH_#u-nu-thai": @@ -78,7 +78,7 @@ public void testGetAvailableLocales() { } } - final Set emulated = Sets.sorted(comparator); + final Set emulated = SortedSets.tree(comparator); emulated.addAll(Arrays.asList(DecimalFormatSymbols.getAvailableLocales())); this.checkEquals(jdk, emulated); diff --git a/src/test/java/walkingkooka/j2cl/java/text/NumberFormatTest.java b/src/test/java/walkingkooka/j2cl/java/text/NumberFormatTest.java index 3d64a3b..ded512f 100644 --- a/src/test/java/walkingkooka/j2cl/java/text/NumberFormatTest.java +++ b/src/test/java/walkingkooka/j2cl/java/text/NumberFormatTest.java @@ -18,7 +18,7 @@ package walkingkooka.j2cl.java.text; import org.junit.jupiter.api.Test; -import walkingkooka.collect.set.Sets; +import walkingkooka.collect.set.SortedSets; import java.lang.reflect.Field; import java.lang.reflect.Method; @@ -54,7 +54,7 @@ public void testIntegerField() { public void testGetAvailableLocales() { final Comparator comparator = (l, r) -> l.toLanguageTag().compareTo(r.toLanguageTag()); - final Set jdk = Sets.sorted(comparator); + final Set jdk = SortedSets.tree(comparator); for(final Locale locale : java.text.DateFormatSymbols.getAvailableLocales()) { switch(locale.toString()) { case "th_TH_TH_#u-nu-thai": @@ -66,7 +66,7 @@ public void testGetAvailableLocales() { } } - final Set emulated = Sets.sorted(comparator); + final Set emulated = SortedSets.tree(comparator); emulated.addAll(Arrays.asList(NumberFormat.getAvailableLocales())); this.checkEquals(jdk, emulated);