예제 #1
0
 def test_part2_example1(self):
     result = day04.part2(self.example)
     self.assertEqual(result, 4455)
예제 #2
0
 def test_part2_input(self):
     result = day04.part2(aoc.read_input('day04.input'))
     self.assertEqual(710, result)
예제 #3
0
def test_part2(puzzle_input, answer):
    assert part2(puzzle_input) == answer
예제 #4
0
def test_part2():
    assert day04.part2('145852-616942') == 1192
예제 #5
0
def test_part2(c1, c2, result):
    assert result == part2(c1, c2)
예제 #6
0
def test_part2():
    assert part2() == 186
def test_part2_sample3(sample3_data):
    assert part2(sample3_data) == 4
def test_part2_sample2(sample2_data):
    assert part2(sample2_data) == 0
def test_part2_sample(sample_data):
    assert part2(sample_data) == 2
예제 #10
0
def test_4_2_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day04.part2(inp)
예제 #11
0
def test_part2():
    assert part2("day04/day04.dat") == 49137