Beispiel #1
0
def xxxtest_day20_part2_maze3():
    # takes too long
    assert day20.part2(maze3) == 396
Beispiel #2
0
 def test_part2(self):
     input = read_inputfile("example20.txt")
     self.assertEqual(part2(input), 273)
Beispiel #3
0
def test_part2(puzzle_input, answer):
    assert part2(puzzle_input) == answer
Beispiel #4
0
def test_day20_part2_maze1():
    assert day20.part2(maze1) == 26
Beispiel #5
0
 def test_part2_examples(self):
     got = part2("../../20/input_recursive_396.txt")
     want = 396
     self.assertEqual(got, want)
Beispiel #6
0
 def test_part2(self):
     got = part2("../../20/input.txt")
     want = 5648
     self.assertEqual(got, want)
Beispiel #7
0
 def test_part2_example1(self):
     result = day20.part2(self.example3)
     self.assertEqual(396, result)
Beispiel #8
0
 def test_part2_input(self):
     result = day20.part2(aoc.read_input('day20.input'))
     self.assertEqual(5288, result)
Beispiel #9
0
def test_day20_part2():
    assert day20.part2(day20_example) == 273
def test_20_2_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day20.part2(inp)
def test_part2_sample(sample_data):
    assert part2(sample_data) == 273
def test_part2_input(input_data):
    assert part2(input_data) == 1989
Beispiel #13
0
 def test_part2(self):
     self.assertEqual(1629, part2())