Exemplo n.º 1
0
 def test_win_on_four_row_not_on_borders_last_at_center(self):
     buttons = [Button(1,1), Button(2,1), Button(3,1), Button(4,1)]
     self.assertTrue(RulesHorizontal.check(1, 3, buttons))
Exemplo n.º 2
0
 def test_win_on_four_row_last_at_end(self):
     buttons = [Button(0,0), Button(1,0), Button(2,0), Button(3,0)]
     self.assertTrue(RulesHorizontal.check(0, 3, buttons))
Exemplo n.º 3
0
 def test_no_win_on_four_row_last_at_center(self):
     buttons = [Button(0,0), Button(2,0), Button(3,0)]
     self.assertFalse(RulesHorizontal.check(0, 2, buttons))
Exemplo n.º 4
0
 def test_no_win_when_only_one_button_on_field(self):
     buttons = [Button(0,0)]
     self.assertFalse(RulesHorizontal.check(0, 0, buttons))