예제 #1
0
 def test_part1_input(self):
     result = day04.part1(aoc.read_input('day04.input'))
     self.assertEqual(1099, result)
예제 #2
0
def test_part1():
    assert day04.part1('145852-616942') == 1767
예제 #3
0
 def test_part1_example1(self):
     result = day04.part1(self.example)
     self.assertEqual(result, 240)
예제 #4
0
def test_part1():
    assert part1() == 455
예제 #5
0
def test_part1(puzzle_input, answer):
    assert part1(puzzle_input) == answer
예제 #6
0
def test_part1(c1, c2, result):
    assert result == part1(c1, c2)
def test_part1_sample(sample_data):
    assert part1(sample_data) == 2
예제 #8
0
def test_day04_part1():
    assert day04.part1(day04_data) == 2
예제 #9
0
def test_4_1_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day04.part1(inp)
예제 #10
0
def test_part1():
    assert part1("day04/day04.dat") == 72925