コード例 #1
0
 def test_simplest(self):
     self.assertEqual(set(), GameOfLife({(1, 1)}).advance(1))
コード例 #2
0
 def test_empty(self):
     self.assertEqual(set(), GameOfLife(set()).advance(1))
     self.assertEqual(set(), GameOfLife(set()).advance(10))
     self.assertEqual(set(), GameOfLife(set()).advance(100))
     self.assertEqual(set(), GameOfLife(set()).advance(1000))