示例#1
0
 @Test
 public void testEmpty() {
   assertTrue(board.empty(0, 0));
   board.put(0, 0, new Token('x'));
   assertFalse(board.empty(0, 0));
   board.put(0, 0, new Token('_'));
   assertTrue(board.empty(0, 0));
 }
示例#2
0
 @Test
 public void testBoard() {
   for (int i = 0; i < 3; i++) {
     for (int j = 0; j < 3; j++) {
       board.empty(i, j);
     }
   }
 }