diff --git a/numberxd/src/test/love/distributedrebirth/numberxd/base2t/BasePartFactoryTest.java b/numberxd/src/test/love/distributedrebirth/numberxd/base2t/BasePartFactoryTest.java index eac58617..6113b867 100644 --- a/numberxd/src/test/love/distributedrebirth/numberxd/base2t/BasePartFactoryTest.java +++ b/numberxd/src/test/love/distributedrebirth/numberxd/base2t/BasePartFactoryTest.java @@ -22,7 +22,7 @@ public class BasePartFactoryTest { } @Test - public void testGlobalChinaMap() { + public void testGlobalChinaKeyMap() { Map global = new HashMap<>(); for (int base:BasePartFactory.getSupportedBases()) { for (BasePart part:BasePartFactory.buildBasePartsByBase(base)) { @@ -33,6 +33,18 @@ public class BasePartFactoryTest { Assertions.assertTrue(global.size() > 1); } + @Test + public void testGlobalChinaValueMap() { + Map global = new HashMap<>(); + for (int base:BasePartFactory.getSupportedBases()) { + for (BasePart part:BasePartFactory.buildBasePartsByBase(base)) { + Assertions.assertFalse(global.containsKey(part.getChinaValue())); + global.put(part.getChinaValue(), part.getChinaValue()); + } + } + Assertions.assertTrue(global.size() > 1); + } + @Test public void testGlobalToneMap() { boolean duplicate = false;