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