def test_list_max_size_constraints(): """ Tests that list <=100 """ l = [] for i in range(0, 101): l.append(i.__str__()) with pytest.raises(ValueError): solution(l)
def test_solution(n, b, result): """ Check that given solutions pass """ assert solution(n, b) == result
def test_language_value(n, b): """ Validate that language passes requirements and edge cases """ with pytest.raises(ValueError): solution(n, b)
def test_language(l): """ Check that language acceptor rejects wrong characters """ with pytest.raises(ValueError): solution(l)
def test_list_min_size_constraints(): """ Tests that list > 0 """ l = [] with pytest.raises(ValueError): solution(l)
def test_solution(l, r, result): """ Checks that the solution is ouputed in correct order """ assert (solution(l) == r) == result