示例#1
0
def test_part2(puzzle_input, answer):
    assert part2(puzzle_input) == answer
def test_part2_input(input_data):
    assert part2(input_data) == 31835
def test_part2_sample(sample_data):
    assert part2(sample_data) == 291
示例#4
0
def test_day22_part2():
    assert day22.part2(day22_example) == 291
示例#5
0
 def test_part2_on_example_data(self):
     input = read_inputfile("example22.txt")
     self.assertEqual(part2(input), 291)
示例#6
0
 def test_part2_input(self):
     rescue_time = day22.part2(aoc.read_input('day22.input'))
     self.assertEqual(982, rescue_time)
示例#7
0
 def test_part2_example1(self):
     rescue_time = day22.part2(self.example_input)
     self.assertEqual(45, rescue_time)
def test_22_2_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day22.part2(inp)
示例#9
0
 def test_part2(self):
     data = parse_22("../../22/input.txt")
     part2_decksize = 119315717514047
     part2_times = 101741582076661
     p2_answer = part2(data, part2_decksize, part2_times, 2020)
     self.assertEqual(p2_answer, 4893716342290)
示例#10
0
 def test_part2_input(self):
     result = day22.part2(aoc.read_input('day22.input'))
     self.assertEqual(40522432670594, result)