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