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