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