Exemple #1
0
 def test_has_duplicates_fails(self, array, error):
     with pytest.raises(error):
         ListOperations.has_duplicates(array)
Exemple #2
0
 def test_has_duplicates(self, array, result):
     assert ListOperations.has_duplicates(array) is result