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())
예제 #3
0
def test_part1():
    yield from validate_by_example(part1, part1_examples)
예제 #4
0
def test_part2():
    yield from validate_by_example(part2, part2_examples)
예제 #5
0
def test_tie_knot():
    yield from validate_by_example(tie_knot_wrapper, tie_knot_examples)
예제 #6
0
def test_stream():
    yield from validate_by_example(score_stream, stream_examples)
예제 #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)
예제 #9
0
def test_part1():
    yield from validate_by_example(process, part1_examples, input_cb)