Пример #1
0
 @Test
 public void testMove() {
   q_w.move(4, 0);
   assertTrue(q_w.getX() == 4 && q_w.getY() == 0);
   p1_b.move(6, 3);
   assertFalse(p1_b.getX() == 6 && p1_b.getY() == 3);
   board.print();
 }
Пример #2
0
 @Test
 public void testCanEatAt() {
   assertTrue(q_w.canEatAt(4, 0));
   assertFalse(p1_b.canEatAt(7, 2));
 }