Esempio n. 1
0
 @Test
 public void testCheckFalse() throws Exception {
   assertFalse(Shuntsu.check(P1, M9, P2));
   assertFalse(Shuntsu.check(P9, S2, S1));
   assertFalse(Shuntsu.check(S1, S2, S5));
   assertFalse(Shuntsu.check(HAK, HAT, CHN));
 }
Esempio n. 2
0
 @Test
 public void testHashCode() throws Exception {
   assertEquals(open.hashCode(), equal.hashCode());
   assertNotEquals(open.hashCode(), close.hashCode());
   assertNotEquals(open.hashCode(), openTrue.hashCode());
 }
Esempio n. 3
0
 @Test
 public void testEquals() throws Exception {
   assertTrue(open.equals(equal));
   assertFalse(open.equals(close));
   assertFalse(open.equals(openTrue));
 }
Esempio n. 4
0
 @Test
 public void testGetIsOpenF() throws Exception {
   assertFalse(close.isOpen());
 }
Esempio n. 5
0
 @Test
 public void testGetIsOpenT() throws Exception {
   assertTrue(open.isOpen());
   assertTrue(openTrue.isOpen());
 }
Esempio n. 6
0
 @Test
 public void testGetIsMentsu() throws Exception {
   assertTrue(open.isMentsu());
   assertTrue(close.isMentsu());
   assertTrue(openTrue.isMentsu());
 }
Esempio n. 7
0
 @Test
 public void testGetTile() throws Exception {
   assertEquals(M2, open.getTile());
   assertEquals(M2, close.getTile());
   assertEquals(P3, openTrue.getTile());
 }
Esempio n. 8
0
 @Test
 public void testCheckTrue() throws Exception {
   assertTrue(Shuntsu.check(M4, M5, M6));
   assertTrue(Shuntsu.check(S8, S6, S7));
   assertTrue(Shuntsu.check(P4, P3, P2));
 }