def test_part1():
    yield from validate_by_example(no_duplicates_in,
                                   part1_examples,
                                   input_cb=lambda x: x.split())
def test_part2():
    yield from validate_by_example(no_anagrams_in,
                                   part2_examples,
                                   input_cb=lambda x: x.split())
Ejemplo n.º 3
0
def test_part1():
    yield from validate_by_example(part1, part1_examples)
Ejemplo n.º 4
0
def test_part2():
    yield from validate_by_example(part2, part2_examples)
Ejemplo n.º 5
0
def test_tie_knot():
    yield from validate_by_example(tie_knot_wrapper, tie_knot_examples)
Ejemplo n.º 6
0
def test_stream():
    yield from validate_by_example(score_stream, stream_examples)
Ejemplo n.º 7
0
def test_garbage():
    yield from validate_by_example(score_stream, garbage_examples)
def test_reallocate():
    yield from validate_by_example(reallocate, examples, convert)
Ejemplo n.º 9
0
def test_part1():
    yield from validate_by_example(process, part1_examples, input_cb)