Move libs to top level
This commit is contained in:
parent
87ce108bd1
commit
57f46b2210
212 changed files with 16 additions and 29 deletions
|
|
@ -0,0 +1,33 @@
|
|||
package love.distributedrebirth.numberxd;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class GroßGetậlŌṁDiamond1Testⁿᴰ {
|
||||
|
||||
@Test
|
||||
public void testClone() {
|
||||
|
||||
GroßGetậlŌṁDiamond1ⁿᴰ getal = new GroßGetậlŌṁDiamond1ⁿᴰ(1);
|
||||
GroßGetậlŌṁDiamond1ⁿᴰ getalClone = getal.toClone();
|
||||
|
||||
Assertions.assertNotNull(getal);
|
||||
Assertions.assertNotNull(getalClone);
|
||||
|
||||
System.out.println("getal: "+getal);
|
||||
System.out.println("getal.m0L: "+getal.getMatrix1Length());
|
||||
System.out.println("getal.m1L: "+getal.getMatrix2Length());
|
||||
|
||||
GroßGetậlŌṁDiamond1ⁿᴰ getal2 = new GroßGetậlŌṁDiamond1ⁿᴰ(2);
|
||||
GroßGetậlŌṁDiamond1ⁿᴰ getal3 = new GroßGetậlŌṁDiamond1ⁿᴰ(3);
|
||||
GroßGetậlŌṁDiamond1ⁿᴰ getal4 = new GroßGetậlŌṁDiamond1ⁿᴰ(4);
|
||||
GroßGetậlŌṁDiamond1ⁿᴰ getal5 = new GroßGetậlŌṁDiamond1ⁿᴰ(5).toClone();
|
||||
|
||||
System.out.println("getal5: "+getal5);
|
||||
System.out.println("getal5.m0L: "+getal5.getMatrix1Length());
|
||||
System.out.println("getal5.m1L: "+getal5.getMatrix2Length());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.BãßBȍőnPartʸᴰ;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class BasePartFactoryTest {
|
||||
|
||||
@Test
|
||||
public void testSupportedBases() {
|
||||
int[] bases = Base2PartsFactory.INSTANCE.BãßBases();
|
||||
Assertions.assertNotNull(bases);
|
||||
Assertions.assertTrue(bases.length > 1);
|
||||
Assertions.assertTrue(bases.length < 100);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGlobalChinaKeyMap() {
|
||||
Map<String,String> global = new HashMap<>();
|
||||
for (int base:Base2PartsFactory.INSTANCE.BãßBases()) {
|
||||
for (BãßBȍőnPartʸᴰ<?> part:Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(base)) {
|
||||
Assertions.assertFalse(global.containsKey(part.BȍőnChinaKey()), "key: "+part.BȍőnChinaKey());
|
||||
global.put(part.BȍőnChinaKey(), part.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
Assertions.assertTrue(global.size() > 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGlobalChinaValueMap() {
|
||||
Map<String,String> global = new HashMap<>();
|
||||
for (int base:Base2PartsFactory.INSTANCE.BãßBases()) {
|
||||
for (BãßBȍőnPartʸᴰ<?> part:Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(base)) {
|
||||
Assertions.assertFalse(global.containsKey(part.BȍőnChinaValue()));
|
||||
global.put(part.BȍőnChinaValue(), part.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
Assertions.assertTrue(global.size() > 1);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGlobalToneMap() {
|
||||
boolean duplicate = false;
|
||||
Map<String,String> global = new HashMap<>();
|
||||
for (int base:Base2PartsFactory.INSTANCE.BãßBases()) {
|
||||
for (BãßBȍőnPartʸᴰ<?> part:Base2PartsFactory.INSTANCE.BãßBuildPartsByBase(base)) {
|
||||
if (global.containsKey(part.BȍőnDialTone())) {
|
||||
duplicate = true;
|
||||
break;
|
||||
}
|
||||
global.put(part.BȍőnDialTone(), part.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
Assertions.assertTrue(global.size() > 1);
|
||||
Assertions.assertTrue(duplicate);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T02PartBinary;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T02PartBinaryTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T02PartBinary value:T02PartBinary.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T02PartBinary.PART_1, T02PartBinary.PART_1.BãßValueOfDialTone("˧"));
|
||||
Assertions.assertEquals(T02PartBinary.PART_2, T02PartBinary.PART_1.BãßValueOfDialTone("꜔"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T02PartBinary.PART_1, T02PartBinary.PART_1.BãßValueOfChinaKey("低"));
|
||||
Assertions.assertEquals(T02PartBinary.PART_2, T02PartBinary.PART_1.BãßValueOfChinaKey("高"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T03PartTrit;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T03PartTritTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T03PartTrit value:T03PartTrit.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T03PartTrit.PART_1, T03PartTrit.PART_1.BãßValueOfDialTone("˦"));
|
||||
Assertions.assertEquals(T03PartTrit.PART_2, T03PartTrit.PART_1.BãßValueOfDialTone("˧"));
|
||||
Assertions.assertEquals(T03PartTrit.PART_3, T03PartTrit.PART_1.BãßValueOfDialTone("˨"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T03PartTrit.PART_1, T03PartTrit.PART_1.BãßValueOfChinaKey("一"));
|
||||
Assertions.assertEquals(T03PartTrit.PART_2, T03PartTrit.PART_1.BãßValueOfChinaKey("二"));
|
||||
Assertions.assertEquals(T03PartTrit.PART_3, T03PartTrit.PART_1.BãßValueOfChinaKey("三"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T04PartQuad;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T04PartQuadTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T04PartQuad value:T04PartQuad.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
Assertions.assertNotNull(value.BȍőnAlt1Value());
|
||||
Assertions.assertNotNull(value.BãßAlt1Name());
|
||||
Assertions.assertNotNull(value.BãßAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testVolgende() {
|
||||
Assertions.assertEquals(T04PartQuad.PART_1, T04PartQuad.PART_4.BȍőnVolgende());
|
||||
Assertions.assertEquals(T04PartQuad.PART_2, T04PartQuad.PART_1.BȍőnVolgende());
|
||||
Assertions.assertEquals(T04PartQuad.PART_3, T04PartQuad.PART_2.BȍőnVolgende());
|
||||
Assertions.assertEquals(T04PartQuad.PART_4, T04PartQuad.PART_3.BȍőnVolgende());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testVorige() {
|
||||
Assertions.assertEquals(T04PartQuad.PART_1, T04PartQuad.PART_2.BȍőnVorige());
|
||||
Assertions.assertEquals(T04PartQuad.PART_2, T04PartQuad.PART_3.BȍőnVorige());
|
||||
Assertions.assertEquals(T04PartQuad.PART_3, T04PartQuad.PART_4.BȍőnVorige());
|
||||
Assertions.assertEquals(T04PartQuad.PART_4, T04PartQuad.PART_1.BȍőnVorige());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T04PartQuad.PART_1, T04PartQuad.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T04PartQuad.PART_2, T04PartQuad.PART_1.BãßValueOfDialTone("꜒"));
|
||||
Assertions.assertEquals(T04PartQuad.PART_3, T04PartQuad.PART_1.BãßValueOfDialTone("꜖"));
|
||||
Assertions.assertEquals(T04PartQuad.PART_4, T04PartQuad.PART_1.BãßValueOfDialTone("˩"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T04PartQuad.PART_1, T04PartQuad.PART_1.BãßValueOfChinaKey("北"));
|
||||
Assertions.assertEquals(T04PartQuad.PART_2, T04PartQuad.PART_1.BãßValueOfChinaKey("東"));
|
||||
Assertions.assertEquals(T04PartQuad.PART_3, T04PartQuad.PART_1.BãßValueOfChinaKey("西"));
|
||||
Assertions.assertEquals(T04PartQuad.PART_4, T04PartQuad.PART_1.BãßValueOfChinaKey("南"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T05PartPental;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T05PartPentalTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T05PartPental value:T05PartPental.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T05PartPental.PART_1, T05PartPental.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T05PartPental.PART_2, T05PartPental.PART_1.BãßValueOfDialTone("˦"));
|
||||
Assertions.assertEquals(T05PartPental.PART_3, T05PartPental.PART_1.BãßValueOfDialTone("˧"));
|
||||
Assertions.assertEquals(T05PartPental.PART_4, T05PartPental.PART_1.BãßValueOfDialTone("˨"));
|
||||
Assertions.assertEquals(T05PartPental.PART_5, T05PartPental.PART_1.BãßValueOfDialTone("˩"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T05PartPental.PART_1, T05PartPental.PART_1.BãßValueOfChinaKey("火"));
|
||||
Assertions.assertEquals(T05PartPental.PART_2, T05PartPental.PART_1.BãßValueOfChinaKey("水"));
|
||||
Assertions.assertEquals(T05PartPental.PART_3, T05PartPental.PART_1.BãßValueOfChinaKey("木"));
|
||||
Assertions.assertEquals(T05PartPental.PART_4, T05PartPental.PART_1.BãßValueOfChinaKey("金"));
|
||||
Assertions.assertEquals(T05PartPental.PART_5, T05PartPental.PART_1.BãßValueOfChinaKey("土"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T06PartSeximal;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T06PartSeximalTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T06PartSeximal value:T06PartSeximal.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
Assertions.assertNotNull(value.BȍőnAlt1Value());
|
||||
Assertions.assertNotNull(value.BãßAlt1Name());
|
||||
Assertions.assertNotNull(value.BãßAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T06PartSeximal.PART_1, T06PartSeximal.PART_1.BãßValueOfDialTone("˦"));
|
||||
Assertions.assertEquals(T06PartSeximal.PART_2, T06PartSeximal.PART_1.BãßValueOfDialTone("˨"));
|
||||
Assertions.assertEquals(T06PartSeximal.PART_5, T06PartSeximal.PART_1.BãßValueOfDialTone("꜊"));
|
||||
Assertions.assertEquals(T06PartSeximal.PART_6, T06PartSeximal.PART_1.BãßValueOfDialTone("꜏"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T06PartSeximal.PART_1, T06PartSeximal.PART_1.BãßValueOfChinaKey("四"));
|
||||
Assertions.assertEquals(T06PartSeximal.PART_2, T06PartSeximal.PART_1.BãßValueOfChinaKey("五"));
|
||||
Assertions.assertEquals(T06PartSeximal.PART_5, T06PartSeximal.PART_1.BãßValueOfChinaKey("八"));
|
||||
Assertions.assertEquals(T06PartSeximal.PART_6, T06PartSeximal.PART_1.BãßValueOfChinaKey("九"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T07PartPlanIt;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T07PartPlanItTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T07PartPlanIt value:T07PartPlanIt.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
Assertions.assertNotNull(value.BȍőnAlt1Value());
|
||||
Assertions.assertNotNull(value.BãßAlt1Name());
|
||||
Assertions.assertNotNull(value.BãßAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T07PartPlanIt.PART_1, T07PartPlanIt.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T07PartPlanIt.PART_2, T07PartPlanIt.PART_1.BãßValueOfDialTone("꜉"));
|
||||
Assertions.assertEquals(T07PartPlanIt.PART_6, T07PartPlanIt.PART_1.BãßValueOfDialTone("꜐"));
|
||||
Assertions.assertEquals(T07PartPlanIt.PART_7, T07PartPlanIt.PART_1.BãßValueOfDialTone("˩"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T07PartPlanIt.PART_1, T07PartPlanIt.PART_1.BãßValueOfChinaKey("♎︎"));
|
||||
Assertions.assertEquals(T07PartPlanIt.PART_2, T07PartPlanIt.PART_1.BãßValueOfChinaKey("♏︎"));
|
||||
Assertions.assertEquals(T07PartPlanIt.PART_6, T07PartPlanIt.PART_1.BãßValueOfChinaKey("♑︎"));
|
||||
Assertions.assertEquals(T07PartPlanIt.PART_7, T07PartPlanIt.PART_1.BãßValueOfChinaKey("♈︎"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T08PartOctal;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T08PartOctalTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T08PartOctal value:T08PartOctal.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T08PartOctal.PART_1, T08PartOctal.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T08PartOctal.PART_2, T08PartOctal.PART_1.BãßValueOfDialTone("˩"));
|
||||
Assertions.assertEquals(T08PartOctal.PART_7, T08PartOctal.PART_1.BãßValueOfDialTone("꜍"));
|
||||
Assertions.assertEquals(T08PartOctal.PART_8, T08PartOctal.PART_1.BãßValueOfDialTone("꜑"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T08PartOctal.PART_1, T08PartOctal.PART_1.BãßValueOfChinaKey("心"));
|
||||
Assertions.assertEquals(T08PartOctal.PART_2, T08PartOctal.PART_1.BãßValueOfChinaKey("頭"));
|
||||
Assertions.assertEquals(T08PartOctal.PART_7, T08PartOctal.PART_1.BãßValueOfChinaKey("肢"));
|
||||
Assertions.assertEquals(T08PartOctal.PART_8, T08PartOctal.PART_1.BãßValueOfChinaKey("腳"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T09PartNonary;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T09PartNonaryTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T09PartNonary value:T09PartNonary.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T09PartNonary.PART_1, T09PartNonary.PART_1.BãßValueOfDialTone("˦"));
|
||||
Assertions.assertEquals(T09PartNonary.PART_2, T09PartNonary.PART_1.BãßValueOfDialTone("˨"));
|
||||
Assertions.assertEquals(T09PartNonary.PART_8, T09PartNonary.PART_1.BãßValueOfDialTone("꜏"));
|
||||
Assertions.assertEquals(T09PartNonary.PART_9, T09PartNonary.PART_1.BãßValueOfDialTone("꜑"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T09PartNonary.PART_1, T09PartNonary.PART_1.BãßValueOfChinaKey("藍"));
|
||||
Assertions.assertEquals(T09PartNonary.PART_2, T09PartNonary.PART_1.BãßValueOfChinaKey("皓"));
|
||||
Assertions.assertEquals(T09PartNonary.PART_8, T09PartNonary.PART_1.BãßValueOfChinaKey("黑"));
|
||||
Assertions.assertEquals(T09PartNonary.PART_9, T09PartNonary.PART_1.BãßValueOfChinaKey("紺"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T10PartDecimal;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T10PartDecimalTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T10PartDecimal value:T10PartDecimal.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T10PartDecimal.PART_1, T10PartDecimal.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T10PartDecimal.PART_2, T10PartDecimal.PART_1.BãßValueOfDialTone("˦"));
|
||||
Assertions.assertEquals(T10PartDecimal.PART_9, T10PartDecimal.PART_1.BãßValueOfDialTone("꜓"));
|
||||
Assertions.assertEquals(T10PartDecimal.PART_10, T10PartDecimal.PART_1.BãßValueOfDialTone("꜒"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T10PartDecimal.PART_1, T10PartDecimal.PART_1.BãßValueOfChinaKey("零"));
|
||||
Assertions.assertEquals(T10PartDecimal.PART_2, T10PartDecimal.PART_1.BãßValueOfChinaKey("壹"));
|
||||
Assertions.assertEquals(T10PartDecimal.PART_9, T10PartDecimal.PART_1.BãßValueOfChinaKey("捌"));
|
||||
Assertions.assertEquals(T10PartDecimal.PART_10, T10PartDecimal.PART_1.BãßValueOfChinaKey("玖"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T11PartUndecimal;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T11PartUndecimalTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T11PartUndecimal value:T11PartUndecimal.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T11PartUndecimal.PART_1, T11PartUndecimal.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T11PartUndecimal.PART_2, T11PartUndecimal.PART_1.BãßValueOfDialTone("꜈"));
|
||||
Assertions.assertEquals(T11PartUndecimal.PART_10, T11PartUndecimal.PART_1.BãßValueOfDialTone("꜐"));
|
||||
Assertions.assertEquals(T11PartUndecimal.PART_11, T11PartUndecimal.PART_1.BãßValueOfDialTone("˩"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T11PartUndecimal.PART_1, T11PartUndecimal.PART_1.BãßValueOfChinaKey("走"));
|
||||
Assertions.assertEquals(T11PartUndecimal.PART_2, T11PartUndecimal.PART_1.BãßValueOfChinaKey("跑"));
|
||||
Assertions.assertEquals(T11PartUndecimal.PART_10, T11PartUndecimal.PART_1.BãßValueOfChinaKey("春"));
|
||||
Assertions.assertEquals(T11PartUndecimal.PART_11, T11PartUndecimal.PART_1.BãßValueOfChinaKey("耦"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T12PartUncial;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T12PartUncialTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T12PartUncial value:T12PartUncial.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
Assertions.assertNotNull(value.BȍőnAlt1Value());
|
||||
Assertions.assertNotNull(value.BãßAlt1Name());
|
||||
Assertions.assertNotNull(value.BãßAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T12PartUncial.PART_1, T12PartUncial.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T12PartUncial.PART_2, T12PartUncial.PART_1.BãßValueOfDialTone("˧"));
|
||||
Assertions.assertEquals(T12PartUncial.PART_11, T12PartUncial.PART_1.BãßValueOfDialTone("꜏"));
|
||||
Assertions.assertEquals(T12PartUncial.PART_12, T12PartUncial.PART_1.BãßValueOfDialTone("꜑"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T12PartUncial.PART_1, T12PartUncial.PART_1.BãßValueOfChinaKey("日"));
|
||||
Assertions.assertEquals(T12PartUncial.PART_2, T12PartUncial.PART_1.BãßValueOfChinaKey("月"));
|
||||
Assertions.assertEquals(T12PartUncial.PART_11, T12PartUncial.PART_1.BãßValueOfChinaKey("黼"));
|
||||
Assertions.assertEquals(T12PartUncial.PART_12, T12PartUncial.PART_1.BãßValueOfChinaKey("亞"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T16PartHex;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T16PartHexTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T16PartHex value:T16PartHex.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T16PartHex.PART_1, T16PartHex.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T16PartHex.PART_2, T16PartHex.PART_1.BãßValueOfDialTone("˦"));
|
||||
Assertions.assertEquals(T16PartHex.PART_15, T16PartHex.PART_1.BãßValueOfDialTone("꜐"));
|
||||
Assertions.assertEquals(T16PartHex.PART_16, T16PartHex.PART_1.BãßValueOfDialTone("꜑"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T16PartHex.PART_1, T16PartHex.PART_1.BãßValueOfChinaKey("氫"));
|
||||
Assertions.assertEquals(T16PartHex.PART_2, T16PartHex.PART_1.BãßValueOfChinaKey("氦"));
|
||||
Assertions.assertEquals(T16PartHex.PART_15, T16PartHex.PART_1.BãßValueOfChinaKey("磷"));
|
||||
Assertions.assertEquals(T16PartHex.PART_16, T16PartHex.PART_1.BãßValueOfChinaKey("硫"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T20PartScore;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T20PartScoreTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T20PartScore value:T20PartScore.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
Assertions.assertNotNull(value.BȍőnAlt1Value());
|
||||
Assertions.assertNotNull(value.BãßAlt1Name());
|
||||
Assertions.assertNotNull(value.BãßAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T20PartScore.PART_1, T20PartScore.PART_1.BãßValueOfDialTone("˥"));
|
||||
Assertions.assertEquals(T20PartScore.PART_2, T20PartScore.PART_1.BãßValueOfDialTone("˦"));
|
||||
Assertions.assertEquals(T20PartScore.PART_19, T20PartScore.PART_1.BãßValueOfDialTone("꜐"));
|
||||
Assertions.assertEquals(T20PartScore.PART_20, T20PartScore.PART_1.BãßValueOfDialTone("꜑"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T20PartScore.PART_1, T20PartScore.PART_1.BãßValueOfChinaKey("尧"));
|
||||
Assertions.assertEquals(T20PartScore.PART_2, T20PartScore.PART_1.BãßValueOfChinaKey("泽"));
|
||||
Assertions.assertEquals(T20PartScore.PART_19, T20PartScore.PART_1.BãßValueOfChinaKey("仄"));
|
||||
Assertions.assertEquals(T20PartScore.PART_20, T20PartScore.PART_1.BãßValueOfChinaKey("幺"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testOpenLCMap() {
|
||||
Assertions.assertEquals(T20PartScore.PART_1, T20PartScore.PART_1.BãßValueOfOpenLC("2"));
|
||||
Assertions.assertEquals(T20PartScore.PART_2, T20PartScore.PART_1.BãßValueOfOpenLC("3"));
|
||||
Assertions.assertEquals(T20PartScore.PART_19, T20PartScore.PART_1.BãßValueOfOpenLC("W"));
|
||||
Assertions.assertEquals(T20PartScore.PART_20, T20PartScore.PART_1.BãßValueOfOpenLC("X"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package love.distributedrebirth.numberxd.base2t;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.numberxd.base2t.part.T60PartSexagesimal;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class T60SexagesimalTest {
|
||||
|
||||
@Test
|
||||
public void testBasePart() {
|
||||
for (T60PartSexagesimal value:T60PartSexagesimal.values()) {
|
||||
Assertions.assertNotNull(value.BȍőnDialTone());
|
||||
Assertions.assertNotNull(value.BȍőnChinaKey());
|
||||
Assertions.assertNotNull(value.BȍőnChinaValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testToneMap() {
|
||||
Assertions.assertEquals(T60PartSexagesimal.PART_1, T60PartSexagesimal.PART_1.BãßValueOfDialTone("˥˥"));
|
||||
Assertions.assertEquals(T60PartSexagesimal.PART_2, T60PartSexagesimal.PART_1.BãßValueOfDialTone("˥˦"));
|
||||
Assertions.assertEquals(T60PartSexagesimal.PART_59, T60PartSexagesimal.PART_1.BãßValueOfDialTone("꜒꜕"));
|
||||
Assertions.assertEquals(T60PartSexagesimal.PART_60, T60PartSexagesimal.PART_1.BãßValueOfDialTone("꜒꜖"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testChinaMap() {
|
||||
Assertions.assertEquals(T60PartSexagesimal.PART_1, T60PartSexagesimal.PART_1.BãßValueOfChinaKey("牛"));
|
||||
Assertions.assertEquals(T60PartSexagesimal.PART_2, T60PartSexagesimal.PART_1.BãßValueOfChinaKey("鸡"));
|
||||
Assertions.assertEquals(T60PartSexagesimal.PART_59, T60PartSexagesimal.PART_1.BãßValueOfChinaKey("薯"));
|
||||
Assertions.assertEquals(T60PartSexagesimal.PART_60, T60PartSexagesimal.PART_1.BãßValueOfChinaKey("蘋"));
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
package love.distributedrebirth.numberxd.base2t.part.warp;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
||||
import love.distributedrebirth.warpme.core.WaterBucket;
|
||||
|
||||
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
||||
public class TOSWarpCoreTest {
|
||||
|
||||
@Test
|
||||
public void testCurrentWarpCore() {
|
||||
WaterBucket warpCore = TOSWarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||
Assertions.assertNotNull(warpCore);
|
||||
Assertions.assertNotNull(warpCore.theWater());
|
||||
Assertions.assertNotNull(warpCore.theWater().getName());
|
||||
Assertions.assertNotNull(warpCore.theWater().getDescription());
|
||||
Assertions.assertNotNull(warpCore.theWater().getCipherHearts());
|
||||
Assertions.assertTrue(warpCore.theWater().getCipherHearts().size() > 1);
|
||||
Assertions.assertTrue(warpCore.theWater().getCipherHearts().size() < 100);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidateWarpCore() {
|
||||
WaterBucket warpCore = TOSWarpCore.INSTANCE.BãßCurrentWarpCore();
|
||||
|
||||
warpCore.theWater().getCipherHearts().get(5).getHeartTones().get(0).setChinaKey("零");
|
||||
warpCore.theWater().getCipherHearts().get(5).getHeartTones().get(1).setChinaKey("零");
|
||||
IllegalArgumentException thrownKey = Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
TOSWarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
||||
});
|
||||
Assertions.assertEquals("Duplicate chinaKey: 零", thrownKey.getMessage());
|
||||
|
||||
warpCore.theWater().getCipherHearts().get(4).getHeartTones().get(0).setChinaValue("pink");
|
||||
warpCore.theWater().getCipherHearts().get(4).getHeartTones().get(1).setChinaValue("pink");
|
||||
IllegalArgumentException thrownValue = Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
TOSWarpCore.INSTANCE.BãßValidateWarpCore(warpCore);
|
||||
});
|
||||
Assertions.assertEquals("Duplicate chinaValue: pink", thrownValue.getMessage());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue