Moved to bass bone code
This commit is contained in:
parent
c0ef8abc03
commit
efc2bc74a2
49 changed files with 578 additions and 493 deletions
|
|
@ -6,7 +6,7 @@ import java.util.Map;
|
|||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import love.distributedrebirth.numberxd.base2t.facet.BasePart;
|
||||
import love.distributedrebirth.numberxd.base2t.bone.BassBone;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -27,7 +27,7 @@ public class BasePartFactoryTest {
|
|||
public void testGlobalChinaKeyMap() {
|
||||
Map<String,String> global = new HashMap<>();
|
||||
for (int base:BasePartFactory.getSupportedBases()) {
|
||||
for (BasePart part:BasePartFactory.buildBasePartsByBase(base)) {
|
||||
for (BassBone part:BasePartFactory.buildBassBonesByBase(base)) {
|
||||
Assertions.assertFalse(global.containsKey(part.getChinaKey()));
|
||||
global.put(part.getChinaKey(), part.getChinaValue());
|
||||
}
|
||||
|
|
@ -39,7 +39,7 @@ public class BasePartFactoryTest {
|
|||
public void testGlobalChinaValueMap() {
|
||||
Map<String,String> global = new HashMap<>();
|
||||
for (int base:BasePartFactory.getSupportedBases()) {
|
||||
for (BasePart part:BasePartFactory.buildBasePartsByBase(base)) {
|
||||
for (BassBone part:BasePartFactory.buildBassBonesByBase(base)) {
|
||||
Assertions.assertFalse(global.containsKey(part.getChinaValue()));
|
||||
global.put(part.getChinaValue(), part.getChinaValue());
|
||||
}
|
||||
|
|
@ -52,7 +52,7 @@ public class BasePartFactoryTest {
|
|||
boolean duplicate = false;
|
||||
Map<String,String> global = new HashMap<>();
|
||||
for (int base:BasePartFactory.getSupportedBases()) {
|
||||
for (BasePart part:BasePartFactory.buildBasePartsByBase(base)) {
|
||||
for (BassBone part:BasePartFactory.buildBassBonesByBase(base)) {
|
||||
if (global.containsKey(part.getIdentifierTone())) {
|
||||
duplicate = true;
|
||||
break;
|
||||
|
|
@ -69,7 +69,7 @@ public class BasePartFactoryTest {
|
|||
boolean duplicate = false;
|
||||
Map<String,String> global = new HashMap<>();
|
||||
for (int base:BasePartFactory.getSupportedBases()) {
|
||||
for (BasePart part:BasePartFactory.buildBasePartsByBase(base)) {
|
||||
for (BassBone part:BasePartFactory.buildBassBonesByBase(base)) {
|
||||
if (global.containsKey(part.getIdentifierLetter())) {
|
||||
duplicate = true;
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ public class T04PartQuadTest {
|
|||
Assertions.assertNotNull(value.getChinaKey());
|
||||
Assertions.assertNotNull(value.getChinaValue());
|
||||
Assertions.assertNotNull(value.getAlt1Value());
|
||||
Assertions.assertNotNull(value.getAlt1Name());
|
||||
Assertions.assertNotNull(value.getAlt1Wiki());
|
||||
Assertions.assertNotNull(value.staticAlt1Name());
|
||||
Assertions.assertNotNull(value.staticAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ public class T06PartSeximalTest {
|
|||
Assertions.assertNotNull(value.getChinaKey());
|
||||
Assertions.assertNotNull(value.getChinaValue());
|
||||
Assertions.assertNotNull(value.getAlt1Value());
|
||||
Assertions.assertNotNull(value.getAlt1Name());
|
||||
Assertions.assertNotNull(value.getAlt1Wiki());
|
||||
Assertions.assertNotNull(value.staticAlt1Name());
|
||||
Assertions.assertNotNull(value.staticAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ public class T07PartPlanItTest {
|
|||
Assertions.assertNotNull(value.getChinaKey());
|
||||
Assertions.assertNotNull(value.getChinaValue());
|
||||
Assertions.assertNotNull(value.getAlt1Value());
|
||||
Assertions.assertNotNull(value.getAlt1Name());
|
||||
Assertions.assertNotNull(value.getAlt1Wiki());
|
||||
Assertions.assertNotNull(value.staticAlt1Name());
|
||||
Assertions.assertNotNull(value.staticAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ public class T08PartOctalTest {
|
|||
Assertions.assertNotNull(value.getChinaKey());
|
||||
Assertions.assertNotNull(value.getChinaValue());
|
||||
Assertions.assertNotNull(value.getAlt1Value());
|
||||
Assertions.assertNotNull(value.getAlt1Name());
|
||||
Assertions.assertNotNull(value.getAlt1Wiki());
|
||||
Assertions.assertNotNull(value.staticAlt1Name());
|
||||
Assertions.assertNotNull(value.staticAlt1Website());
|
||||
Assertions.assertNotNull(value.getAlt2Value());
|
||||
Assertions.assertNotNull(value.getAlt2Name());
|
||||
Assertions.assertNotNull(value.getAlt2Wiki());
|
||||
Assertions.assertNotNull(value.staticAlt2Name());
|
||||
Assertions.assertNotNull(value.staticAlt2Website());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ public class T12PartUncialTest {
|
|||
Assertions.assertNotNull(value.getChinaKey());
|
||||
Assertions.assertNotNull(value.getChinaValue());
|
||||
Assertions.assertNotNull(value.getAlt1Value());
|
||||
Assertions.assertNotNull(value.getAlt1Name());
|
||||
Assertions.assertNotNull(value.getAlt1Wiki());
|
||||
Assertions.assertNotNull(value.staticAlt1Name());
|
||||
Assertions.assertNotNull(value.staticAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ public class T16PartHexTest {
|
|||
Assertions.assertNotNull(value.getChinaKey());
|
||||
Assertions.assertNotNull(value.getChinaValue());
|
||||
Assertions.assertNotNull(value.getAlt1Value());
|
||||
Assertions.assertNotNull(value.getAlt1Name());
|
||||
Assertions.assertNotNull(value.getAlt1Wiki());
|
||||
Assertions.assertNotNull(value.staticAlt1Name());
|
||||
Assertions.assertNotNull(value.staticAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ public class T20PartScoreTest {
|
|||
Assertions.assertNotNull(value.getChinaKey());
|
||||
Assertions.assertNotNull(value.getChinaValue());
|
||||
Assertions.assertNotNull(value.getAlt1Value());
|
||||
Assertions.assertNotNull(value.getAlt1Name());
|
||||
Assertions.assertNotNull(value.getAlt1Wiki());
|
||||
Assertions.assertNotNull(value.staticAlt1Name());
|
||||
Assertions.assertNotNull(value.staticAlt1Website());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue