2022-01-31 15:03:30 +01:00
|
|
|
package love.distributedrebirth.numberxd.base2t;
|
|
|
|
|
|
|
|
|
|
import org.junit.jupiter.api.Assertions;
|
|
|
|
|
import org.junit.jupiter.api.Test;
|
|
|
|
|
|
2022-02-02 18:23:24 +01:00
|
|
|
import love.distributedrebirth.bassboonyd.BãßBȍőnAuthorInfoʸᴰ;
|
2022-02-02 22:51:56 +01:00
|
|
|
import love.distributedrebirth.numberxd.base2t.part.T60PartSexagesimal;
|
2022-02-02 18:23:24 +01:00
|
|
|
|
|
|
|
|
@BãßBȍőnAuthorInfoʸᴰ(name = "willemtsade", copyright = "©Δ∞ 仙上主天")
|
2022-01-31 15:03:30 +01:00
|
|
|
public class T60SexagesimalTest {
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testBasePart() {
|
2022-02-02 00:34:10 +01:00
|
|
|
for (T60PartSexagesimal value:T60PartSexagesimal.values()) {
|
2022-02-02 19:24:31 +01:00
|
|
|
Assertions.assertNotNull(value.BȍőnIdentifierTone());
|
|
|
|
|
Assertions.assertNotNull(value.BȍőnChinaKey());
|
|
|
|
|
Assertions.assertNotNull(value.BȍőnChinaValue());
|
2022-01-31 15:03:30 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testToneMap() {
|
2022-02-03 13:21:40 +01:00
|
|
|
Assertions.assertEquals(T60PartSexagesimal.PART_1, T60PartSexagesimal.PART_1.BãßValueOfTone("˥˥"));
|
|
|
|
|
Assertions.assertEquals(T60PartSexagesimal.PART_2, T60PartSexagesimal.PART_1.BãßValueOfTone("˥˦"));
|
|
|
|
|
Assertions.assertEquals(T60PartSexagesimal.PART_59, T60PartSexagesimal.PART_1.BãßValueOfTone("꜒꜕"));
|
|
|
|
|
Assertions.assertEquals(T60PartSexagesimal.PART_60, T60PartSexagesimal.PART_1.BãßValueOfTone("꜒꜖"));
|
2022-01-31 15:03:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void testChinaMap() {
|
2022-02-02 19:24:31 +01:00
|
|
|
Assertions.assertEquals(T60PartSexagesimal.PART_1, T60PartSexagesimal.PART_1.BãßValueOfChina("牛"));
|
|
|
|
|
Assertions.assertEquals(T60PartSexagesimal.PART_2, T60PartSexagesimal.PART_1.BãßValueOfChina("鸡"));
|
|
|
|
|
Assertions.assertEquals(T60PartSexagesimal.PART_59, T60PartSexagesimal.PART_1.BãßValueOfChina("薯"));
|
|
|
|
|
Assertions.assertEquals(T60PartSexagesimal.PART_60, T60PartSexagesimal.PART_1.BãßValueOfChina("蘋"));
|
2022-01-31 15:03:30 +01:00
|
|
|
}
|
|
|
|
|
}
|