Beispiel #1
0
def test_day21_part2():
    test_input = get_input_of_day(21)
    assert solve_part2(test_input) == 'mxmxvkd,sqjhc,fvjkl'
Beispiel #2
0
def test_day17_part2():
    test_input = get_input_of_day(17)
    assert solve_part2(test_input) == 848
Beispiel #3
0
def test_day20_part2():
    test_input = get_input_of_day(20)
    assert solve_part2(test_input) == 273
Beispiel #4
0
def test_day1_part2():
    test_input = get_input_of_day(1)
    assert solve_part2(test_input) == 241861950
Beispiel #5
0
def test_day25_part1():
    test_input = get_input_of_day(25)
    assert solve_part1(test_input) == 14897079
Beispiel #6
0
def test_day24_part2():
    test_input = get_input_of_day(24)
    assert solve_part2(test_input) == 2208
Beispiel #7
0
def test_day10_part1():
    test_input = get_input_of_day(10)
    assert solve_part1(test_input) == 220
Beispiel #8
0
def test_day16_part1():
    test_input = get_input_of_day(16)
    assert solve_part1(test_input) == 71
Beispiel #9
0
def test_day18_part2():
    test_input = get_input_of_day(18)
    assert solve_part2(test_input) == 51 + 46 + 1445 + 669060 + 23340
Beispiel #10
0
def test_day12_part2():
    test_input = get_input_of_day(12)
    assert solve_part2(test_input) == 286
Beispiel #11
0
def test_day18_part1():
    test_input = get_input_of_day(18)
    assert solve_part1(test_input) == 51 + 26 + 437 + 12240 + 13632
Beispiel #12
0
def test_day11_part2():
    test_input = get_input_of_day(11)
    assert solve_part2(test_input) == 26
Beispiel #13
0
def test_day14_part1():
    test_input = get_input_of_day(14)
    assert solve_part1(test_input) == 165
Beispiel #14
0
def test_day9_part1():
    test_input = get_input_of_day(9)
    preamble = 5
    assert solve_part1(test_input, preamble) == 127
Beispiel #15
0
def test_day10_part2():
    test_input = get_input_of_day(10)
    assert solve_part2(test_input) == 19208
Beispiel #16
0
def test_day8_part2():
    test_input = get_input_of_day(8)
    assert solve_part2(test_input) == 8
Beispiel #17
0
def test_day6_part2():
    test_input = get_input_of_day(6)
    assert solve_part2(test_input) == 6
Beispiel #18
0
def test_day19_part2():
    test_input = get_input_of_day(19)
    assert solve_part2(test_input) == 12
Beispiel #19
0
def test_day3_part2():
    test_input = get_input_of_day(3)
    assert solve_part2(test_input) == 336
Beispiel #20
0
def test_day24_part1():
    test_input = get_input_of_day(24)
    assert solve_part1(test_input) == 10
Beispiel #21
0
def test_day22_part1():
    test_input = get_input_of_day(22)
    assert solve_part1(test_input) == 306
Beispiel #22
0
def test_day20_part1():
    test_input = get_input_of_day(20)
    assert solve_part1(test_input) == 20899048083289
Beispiel #23
0
def test_day22_part2():
    test_input = get_input_of_day(22)
    assert solve_part2(test_input) == 291
Beispiel #24
0
def test_day1_part1():
    test_input = get_input_of_day(1)
    assert solve_part1(test_input) == 514579
Beispiel #25
0
def test_day17_part1():
    test_input = get_input_of_day(17)
    assert solve_part1(test_input) == 112
Beispiel #26
0
def test_day7_part2():
    test_input = get_input_of_day(7)
    assert solve_part2(test_input) == 32
Beispiel #27
0
def test_day21_part1():
    test_input = get_input_of_day(21)
    assert solve_part1(test_input) == 5