예제 #1
0
 def test_outbound_on_dead_with_2_n(self):
     self.assertEqual(2, cnwgl.countN(0, 15, self.field))
예제 #2
0
 def test_outbound_on_alive_with_1_n(self):
     self.assertEqual(2, cnwgl.countN(3, 17, self.field))
예제 #3
0
 def test_inbound_on_alive_with_8_n(self):
     self.assertEqual(8, cnwgl.countN(2, 12, self.field))
예제 #4
0
 def test_inbound_on_dead_with_8_n(self):
     self.assertEqual(8, cnwgl.countN(2, 9, self.field))
예제 #5
0
 def test_inbound_on_alive_with_empty(self):
     self.assertEqual(0, cnwgl.countN(3, 6, self.field))
예제 #6
0
 def test_inbound_with_n(self):
     self.assertEqual(1, cnwgl.countN(2, 6, self.field))
예제 #7
0
 def test_inbound_empty(self):
     self.assertEqual(0, cnwgl.countN(2, 1, self.field))