Exemplo n.º 1
0
 def testCellIsFilledByOnlyOneDotOnItsEdge(self):
     b = Board(4, 4)
     b.addDot(3, 2)
     self.assertTrue(b.cellContainsDot(2, 2))
     self.assertTrue(b.cellContainsDot(3, 1))
     self.assertTrue(b.cellContainsDot(3, 3))
     self.assertTrue(b.cellContainsDot(4, 1))
Exemplo n.º 2
0
 def testFloats(self):
     b = Board(4, 4)
     self.assertTrue(b.cellIsWithinBoard(1, 1))
     b.addDot(3, 5)
     self.assertTrue(b.cellContainsDot(3, 5))