def test_part2_with_puzzle_input():
    assert 20220949 == part2(test_data_initial_state, text("chocolate_charts"))
示例#2
0
def test_part1_with_puzzle_input():
    assert 35911 == part1(text('memory_maneuver'))
def test_part1_with_puzzle_input():
    assert 245280 == part1(text('beverage_bandits'))
示例#4
0
def test_part2_with_puzzle_input():
    assert (86, 18) == part2(text('mine_cart_madness'))
def test_part1_with_puzzle_input():
    assert 1694 == part1(text("go_with_the_flow_program"))
def test_part2_with_puzzle_input():
    assert 886 == part2(text("the_sum_of_its_parts"))
示例#7
0
def test_part2_with_puzzle_input():
    assert 8756 == part2(text("a_regular_map"))
def test_part1_with_puzzle_data():
    assert 2140 == answer(text('subterranean_sustainability'), 20)
def test_part2_with_puzzle_data():
    assert 1900000000384 == answer(text('subterranean_sustainability'), 50_000_000_000)
示例#10
0
def test_part1_with_puzzle_input():
    assert 151754 == part1(text("response_record"))
示例#11
0
def test_part2_with_puzzle_input():
    assert 19896 == part2(text("response_record"))
def test_part2_with_puzzle_input():
    assert "#412" == part2(text("no_matter_how_you_slice_it"))
def test_part1_with_puzzle_input():
    assert 118223 == part1(text("no_matter_how_you_slice_it"))
def test_part1_with_puzzle_input():
    assert 425 == part1(text("four_dimensional_adventure"))
示例#15
0
def test_part2_with_puzzle_input():
    assert 709 == part2(text("chronal_calibration"))
示例#16
0
def test_part1_with_puzzle_input():
    assert (235, 14) == part1(int(text("chronal_charge")))
def test_part1_with_puzzle_input():
    assert "GNJOCHKSWTFMXLYDZABIREPVUQ" == part1(text("the_sum_of_its_parts"))
示例#18
0
def test_part2_with_puzzle_input():
    assert (237, 227, 14) == part2(int(text("chronal_charge")))
示例#19
0
def test_part1_with_puzzle_input():
    assert 3633 == part1(text("a_regular_map"))
示例#20
0
def test_part1_with_puzzle_input():
    assert 355918 == part1(text("settlers_of_the_north_pole"))
示例#21
0
def test_part1_with_puzzle_input():
    assert (26, 92) == part1(text('mine_cart_madness'))
示例#22
0
def test_part2_with_puzzle_input():
    assert 202806 == part2(text("settlers_of_the_north_pole"), 1_000_000_000)
示例#23
0
def test_part2_with_puzzle_input():
    assert 10003 == part1(text("the_stars_align"))[0]
示例#24
0
def test_part1_with_puzzle_input():
    assert 9633 == part1(text("inventory_management_system"))
示例#25
0
def test_part2_with_puzzle_input():
    assert 18964204 == part2(text("go_with_the_flow_program"))
示例#26
0
def test_part2_with_puzzle_input():
    assert "lujnogabetpmsydyfcovzixaw" == part2(
        text("inventory_management_system"))
示例#27
0
def test_part2_with_puzzle_input():
    assert 17206 == part2(text('memory_maneuver'))
示例#28
0
def test_part1_with_puzzle_input():
    assert 500 == part1(text("chronal_calibration"))
示例#29
0
def test_part2_with_puzzle_input():
    assert 74984 == part2(text('beverage_bandits'))
示例#30
0
def test_part1_with_puzzle_input():
    assert "1776718175" == part1(test_data_initial_state,
                                 int(text("chocolate_charts")))