Exemplo n.º 1
0
 def test_over_size(self):
     assert main.is_correct_con(5, (1, 5)) is False
     assert main.is_correct_con(5, (5, 1)) is False
     assert main.is_correct_con(5, (1, 6)) is False
     assert main.is_correct_con(5, (6, 6)) is False
Exemplo n.º 2
0
 def test_negative_over_size(self):
     assert main.is_correct_con(5, (-6, 6)) is False
     assert main.is_correct_con(5, (6, -6)) is False
     assert main.is_correct_con(5, (-1, 6)) is False
     assert main.is_correct_con(5, (-1, 6)) is False
Exemplo n.º 3
0
 def test_posirive(self):
     assert main.is_correct_con(5, (1, 1)) is True
Exemplo n.º 4
0
 def test_negative(self):
     assert main.is_correct_con(5, (-1, -6)) is False
     assert main.is_correct_con(5, (-6, -1)) is False
     assert main.is_correct_con(5, (-6, -6)) is False
     assert main.is_correct_con(5, (-1, -1)) is False
Exemplo n.º 5
0
 def test_zero_negative(self):
     assert main.is_correct_con(5, (0, -1)) is False
     assert main.is_correct_con(5, (-1, 0)) is False
Exemplo n.º 6
0
 def test_zero_positive(self):
     assert main.is_correct_con(5, (0, 4)) is True
     assert main.is_correct_con(5, (4, 0)) is True
Exemplo n.º 7
0
 def test_zero_zero(self):
     assert main.is_correct_con(5, (0, 0)) is True