Ejemplo n.º 1
0
 def testDead_Cell_Two_Neighbours_Dead(self):
     self.assertEqual(nextState(Dead, 2), Dead)
Ejemplo n.º 2
0
 def testLiving_Cell_Four_Neighbours_Dead(self):
     self.assertEqual(nextState(Alive, 4), Dead)
Ejemplo n.º 3
0
 def testDead_Cell_Three_Neighbours_Alive(self):
     self.assertEqual(nextState(Dead, 3), Alive)
Ejemplo n.º 4
0
 def testLiving_Cell_One_Neighbour_Dead(self):
     self.assertEqual(nextState(Alive, 1), Dead)
Ejemplo n.º 5
0
 def testLiving_Cell_Three_Neighbours_Alive(self):
     self.assertEqual(nextState(Alive, 3), Alive)
Ejemplo n.º 6
0
 def testDead_Cell_Two_Neighbours_Dead(self):
     self.assertEqual(nextState(Dead, 2), Dead)
Ejemplo n.º 7
0
 def testDead_Cell_Three_Neighbours_Alive(self):
     self.assertEqual(nextState(Dead, 3), Alive)
Ejemplo n.º 8
0
 def testLiving_Cell_Four_Neighbours_Dead(self):
     self.assertEqual(nextState(Alive, 4), Dead)
Ejemplo n.º 9
0
 def testLiving_Cell_Three_Neighbours_Alive(self):
     self.assertEqual(nextState(Alive, 3), Alive)
Ejemplo n.º 10
0
 def testLiving_Cell_One_Neighbour_Dead(self):
     self.assertEqual(nextState(Alive, 1), Dead)