コード例 #1
0
ファイル: RulesTest.py プロジェクト: TillRauch/GameOfLife
 def testDead_Cell_Two_Neighbours_Dead(self):
     self.assertEqual(nextState(Dead, 2), Dead)
コード例 #2
0
ファイル: RulesTest.py プロジェクト: TillRauch/GameOfLife
 def testLiving_Cell_Four_Neighbours_Dead(self):
     self.assertEqual(nextState(Alive, 4), Dead)
コード例 #3
0
ファイル: RulesTest.py プロジェクト: TillRauch/GameOfLife
 def testDead_Cell_Three_Neighbours_Alive(self):
     self.assertEqual(nextState(Dead, 3), Alive)
コード例 #4
0
ファイル: RulesTest.py プロジェクト: TillRauch/GameOfLife
 def testLiving_Cell_One_Neighbour_Dead(self):
     self.assertEqual(nextState(Alive, 1), Dead)
コード例 #5
0
ファイル: RulesTest.py プロジェクト: TillRauch/GameOfLife
 def testLiving_Cell_Three_Neighbours_Alive(self):
     self.assertEqual(nextState(Alive, 3), Alive)
コード例 #6
0
 def testDead_Cell_Two_Neighbours_Dead(self):
     self.assertEqual(nextState(Dead, 2), Dead)
コード例 #7
0
 def testDead_Cell_Three_Neighbours_Alive(self):
     self.assertEqual(nextState(Dead, 3), Alive)
コード例 #8
0
 def testLiving_Cell_Four_Neighbours_Dead(self):
     self.assertEqual(nextState(Alive, 4), Dead)
コード例 #9
0
 def testLiving_Cell_Three_Neighbours_Alive(self):
     self.assertEqual(nextState(Alive, 3), Alive)
コード例 #10
0
 def testLiving_Cell_One_Neighbour_Dead(self):
     self.assertEqual(nextState(Alive, 1), Dead)