Example #1
0
 @Test
 public void testPut() {
   board.put(0, 1, new Token('x'));
   assertTrue(board.full(0, 1, new Token('x')));
   board.put(0, 1, new Token('o'));
   assertFalse(board.full(0, 1, new Token('_')));
 }
Example #2
0
 @Test
 public void testFull() {
   assertFalse(board.full(1, 2, new Token('o')));
   board.put(1, 2, new Token('o'));
   assertTrue(board.full(1, 2, new Token('o')));
   board.put(1, 2, new Token('_'));
   assertFalse(board.full(1, 2, new Token('o')));
 }