diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2PartsFactory.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2PartsFactory.java index 1845983c..289c4d0c 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2PartsFactory.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/Base2PartsFactory.java @@ -25,7 +25,7 @@ import love.distributedrebirth.numberxd.base2t.part.T017PartHeptadecimal; import love.distributedrebirth.numberxd.base2t.part.T018PartOctodecimal; import love.distributedrebirth.numberxd.base2t.part.T192PartCentebrailleimal; import love.distributedrebirth.numberxd.base2t.part.ii.TerminatorPartᶦᶦ; -import love.distributedrebirth.numberxd.base2t.part.T020PartScore; +import love.distributedrebirth.numberxd.base2t.part.T020PartVigesimal; import love.distributedrebirth.numberxd.base2t.part.T021PartUnvigesimal; import love.distributedrebirth.numberxd.base2t.part.T025PartPentavigesimal; import love.distributedrebirth.numberxd.base2t.part.T060PartSexagesimal; @@ -143,7 +143,7 @@ public enum Base2PartsFactory implements BãßBȍőnAbacusInstanceMBeanʸᴰ { +public enum T020PartVigesimal implements TerminatorPartAlt4ᶦᶦ { PART_1 ("˥", "尧", "yotta", "Y", "0", "0", "2"), PART_2 ("˦", "泽", "zetta", "Z", "1", "1", "3"), @@ -45,12 +45,12 @@ public enum T020PartScore implements TerminatorPartAlt4ᶦᶦ { PART_20("꜑", "幺", "yocto", "y", "J", "K", "X"), ; - private static final Map OPENLC_MAP = Collections.unmodifiableMap( + private static final Map OPENLC_MAP = Collections.unmodifiableMap( Arrays.asList(values()).stream().collect(Collectors.toMap(v -> v.rȧñkAlt4Waarde(), v -> v))); - public final static T020PartScore STATIC = T020PartScore.PART_1; + public final static T020PartVigesimal STATIC = T020PartVigesimal.PART_1; - private T020PartScore(String dialTone, String chinaKey, String chinaValue, + private T020PartVigesimal(String dialTone, String chinaKey, String chinaValue, String alt1Value, String alt2Value, String alt3Value, String alt4Value) { TerminatorPartᶦᶦ.Ꝑŕḯṿª₮ḕ.יהוהʸᴰ(this, dialTone, enumPart -> { enumPart.PUT_OBJ(TerminatorBullet.CHINA_KEY, chinaKey); @@ -62,7 +62,7 @@ public enum T020PartScore implements TerminatorPartAlt4ᶦᶦ { }); } - public T020PartScore BãßValueOfOpenLC(String openLCKey) { + public T020PartVigesimal BãßValueOfOpenLC(String openLCKey) { return OPENLC_MAP.get(openLCKey); } } diff --git a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000348ˣᴸ.java b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000348ˣᴸ.java index c7c0a5c3..5157d4cb 100644 --- a/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000348ˣᴸ.java +++ b/gdxapp4d-lib-numberxd/src/main/java/love/distributedrebirth/numberxd/base2t/typexl/V0x000348ˣᴸ.java @@ -4,7 +4,7 @@ import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注; import love.distributedrebirth.numberxd.base2t.BaseAppenderOctal; import love.distributedrebirth.numberxd.base2t.BaseIteratorOctal; import love.distributedrebirth.numberxd.base2t.BaseNumberˣᴸ; -import love.distributedrebirth.numberxd.base2t.part.T020PartScore; +import love.distributedrebirth.numberxd.base2t.part.T020PartVigesimal; import love.distributedrebirth.numberxd.base2t.type.V042Traw; /** @@ -13,8 +13,8 @@ import love.distributedrebirth.numberxd.base2t.type.V042Traw; @BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") public class V0x000348ˣᴸ implements BaseNumberˣᴸ { - public static int BIT_COUNT = V042Traw.BIT_COUNT * T020PartScore.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); - private V042Traw[] values = new V042Traw[T020PartScore.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; + public static int BIT_COUNT = V042Traw.BIT_COUNT * T020PartVigesimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ(); + private V042Traw[] values = new V042Traw[T020PartVigesimal.STATIC.BãßĦǿɇṽḝę̃ɬḪễïđ()]; public V0x000348ˣᴸ() { for (int i=0;i { } } - public V042Traw getValue(T020PartScore part) { + public V042Traw getValue(T020PartVigesimal part) { return values[part.ordinal()]; } - public void setValue(T020PartScore part, V042Traw value) { + public void setValue(T020PartVigesimal part, V042Traw value) { values[part.ordinal()] = value; } @@ -48,6 +48,6 @@ public class V0x000348ˣᴸ implements BaseNumberˣᴸ { @Override public void fillOctalsByClone(BaseAppenderOctal appender) { - T020PartScore.STATIC.teŀráàmVoorElk(v -> getValue(v).fillOctalsByClone(appender)); + T020PartVigesimal.STATIC.teŀráàmVoorElk(v -> getValue(v).fillOctalsByClone(appender)); } } diff --git a/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T020PartScoreTest.java b/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T020PartScoreTest.java deleted file mode 100644 index 21c43fd1..00000000 --- a/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T020PartScoreTest.java +++ /dev/null @@ -1,46 +0,0 @@ -package love.distributedrebirth.numberxd.base2t.part; - -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; - -import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注; - -@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") -public class T020PartScoreTest { - - @Test - public void testBasePart() { - for (T020PartScore value:T020PartScore.values()) { - Assertions.assertNotNull(value.rȧñkRingToon()); - Assertions.assertNotNull(value.rȧñkChinaSleutel()); - Assertions.assertNotNull(value.rȧñkChinaWaarde()); - Assertions.assertNotNull(value.rȧñkAlt1Waarde()); - Assertions.assertNotNull(value.ráàmAlt1Naam()); - Assertions.assertNotNull(value.ráàmAlt1Website()); - } - } - - @Test - public void testToneMap() { - Assertions.assertEquals(T020PartScore.PART_1, T020PartScore.PART_1.teŀráàmWaardeVanRingToon("˥")); - Assertions.assertEquals(T020PartScore.PART_2, T020PartScore.PART_1.teŀráàmWaardeVanRingToon("˦")); - Assertions.assertEquals(T020PartScore.PART_19, T020PartScore.PART_1.teŀráàmWaardeVanRingToon("꜐")); - Assertions.assertEquals(T020PartScore.PART_20, T020PartScore.PART_1.teŀráàmWaardeVanRingToon("꜑")); - } - - @Test - public void testChinaMap() { - Assertions.assertEquals(T020PartScore.PART_1, T020PartScore.PART_1.ráàmWaardeVanChinaSleutel("尧")); - Assertions.assertEquals(T020PartScore.PART_2, T020PartScore.PART_1.ráàmWaardeVanChinaSleutel("泽")); - Assertions.assertEquals(T020PartScore.PART_19, T020PartScore.PART_1.ráàmWaardeVanChinaSleutel("仄")); - Assertions.assertEquals(T020PartScore.PART_20, T020PartScore.PART_1.ráàmWaardeVanChinaSleutel("幺")); - } - - @Test - public void testOpenLCMap() { - Assertions.assertEquals(T020PartScore.PART_1, T020PartScore.PART_1.BãßValueOfOpenLC("2")); - Assertions.assertEquals(T020PartScore.PART_2, T020PartScore.PART_1.BãßValueOfOpenLC("3")); - Assertions.assertEquals(T020PartScore.PART_19, T020PartScore.PART_1.BãßValueOfOpenLC("W")); - Assertions.assertEquals(T020PartScore.PART_20, T020PartScore.PART_1.BãßValueOfOpenLC("X")); - } -} diff --git a/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T020PartVigesimalTest.java b/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T020PartVigesimalTest.java new file mode 100644 index 00000000..5a6712ce --- /dev/null +++ b/gdxapp4d-lib-numberxd/src/test/java/love/distributedrebirth/numberxd/base2t/part/T020PartVigesimalTest.java @@ -0,0 +1,46 @@ +package love.distributedrebirth.numberxd.base2t.part; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注; + +@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天") +public class T020PartVigesimalTest { + + @Test + public void testBasePart() { + for (T020PartVigesimal value:T020PartVigesimal.values()) { + Assertions.assertNotNull(value.rȧñkRingToon()); + Assertions.assertNotNull(value.rȧñkChinaSleutel()); + Assertions.assertNotNull(value.rȧñkChinaWaarde()); + Assertions.assertNotNull(value.rȧñkAlt1Waarde()); + Assertions.assertNotNull(value.ráàmAlt1Naam()); + Assertions.assertNotNull(value.ráàmAlt1Website()); + } + } + + @Test + public void testToneMap() { + Assertions.assertEquals(T020PartVigesimal.PART_1, T020PartVigesimal.PART_1.teŀráàmWaardeVanRingToon("˥")); + Assertions.assertEquals(T020PartVigesimal.PART_2, T020PartVigesimal.PART_1.teŀráàmWaardeVanRingToon("˦")); + Assertions.assertEquals(T020PartVigesimal.PART_19, T020PartVigesimal.PART_1.teŀráàmWaardeVanRingToon("꜐")); + Assertions.assertEquals(T020PartVigesimal.PART_20, T020PartVigesimal.PART_1.teŀráàmWaardeVanRingToon("꜑")); + } + + @Test + public void testChinaMap() { + Assertions.assertEquals(T020PartVigesimal.PART_1, T020PartVigesimal.PART_1.ráàmWaardeVanChinaSleutel("尧")); + Assertions.assertEquals(T020PartVigesimal.PART_2, T020PartVigesimal.PART_1.ráàmWaardeVanChinaSleutel("泽")); + Assertions.assertEquals(T020PartVigesimal.PART_19, T020PartVigesimal.PART_1.ráàmWaardeVanChinaSleutel("仄")); + Assertions.assertEquals(T020PartVigesimal.PART_20, T020PartVigesimal.PART_1.ráàmWaardeVanChinaSleutel("幺")); + } + + @Test + public void testOpenLCMap() { + Assertions.assertEquals(T020PartVigesimal.PART_1, T020PartVigesimal.PART_1.BãßValueOfOpenLC("2")); + Assertions.assertEquals(T020PartVigesimal.PART_2, T020PartVigesimal.PART_1.BãßValueOfOpenLC("3")); + Assertions.assertEquals(T020PartVigesimal.PART_19, T020PartVigesimal.PART_1.BãßValueOfOpenLC("W")); + Assertions.assertEquals(T020PartVigesimal.PART_20, T020PartVigesimal.PART_1.BãßValueOfOpenLC("X")); + } +}