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