Example #1
0
    def test_part2_example1(self):
        input_list = [
            'abcde', 'fghij', 'klmno', 'pqrst', 'fguij', 'axcye', 'wvxyz'
        ]

        result = day02.part2(input_list)
        self.assertEqual(result, 'fgij')
Example #2
0
def test_part2():
    assert day02.part2('input_day02.txt') == 7749
Example #3
0
def test_part2(puzzle_input, answer):
    assert part2(puzzle_input) == answer
Example #4
0
def test_part2():
    assert part2(TEST) == 900
Example #5
0
 def test_part2_input(self):
     result = day02.part2(aoc.read_input('day02.input'))
     self.assertEqual(result, 'qyzphxoiseldjrntfygvdmanu')
Example #6
0
def test_part2():
    assert part2("day02/day02.dat") == "fvstwblgqkhpuixdrnevmaycd"
Example #7
0
 def test_regressions(self):
     self.assertEqual(3058646, part1())
     self.assertEqual(8976, part2())
def test_2_2_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day02.part2(inp)
Example #9
0
def test_day02_part2():
    assert day02.part2(['1-3 a: abcde', '1-3 b: cdefg',
                        '2-9 c: ccccccccc']) == 1
def test_part_2(input_data):
    assert part2(input_data) == 2134882034
def test_part2_sample():
    assert part2(['1-3 a: abcde\n', '1-3 b: cdefg\n',
                  '2-9 c: ccccccccc\n']) == 1
def test_part2_sample_3():
    assert part2(['2-9 c: ccccccccc']) == 0
def test_part2_sample_2():
    assert part2(['1-3 b: cdefg']) == 0
def test_part2_sample_1():
    assert part2(['1-3 a: abcde']) == 1