Пример #1
0
 def test_no_win_on_four_column(self):
     buttons = [Button(0,0), Button(0,2), Button(0,3)]
     self.assertFalse(RulesVertical.check(0, 0, buttons))
Пример #2
0
 def test_win_on_four_column_not_on_borders_last(self):
     buttons = [Button(1,1), Button(1,2), Button(1,3), Button(1,4)]
     self.assertTrue(RulesVertical.check(1, 1, buttons))
Пример #3
0
 def test_no_win_when_only_one_button_on_field(self):
     buttons = [Button(0,0)]
     self.assertFalse(RulesVertical.check(0, 0, buttons))