示例#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
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