Beispiel #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')
Beispiel #2
0
def test_part2():
    assert day02.part2('input_day02.txt') == 7749
Beispiel #3
0
def test_part2(puzzle_input, answer):
    assert part2(puzzle_input) == answer
Beispiel #4
0
def test_part2():
    assert part2(TEST) == 900
Beispiel #5
0
 def test_part2_input(self):
     result = day02.part2(aoc.read_input('day02.input'))
     self.assertEqual(result, 'qyzphxoiseldjrntfygvdmanu')
Beispiel #6
0
def test_part2():
    assert part2("day02/day02.dat") == "fvstwblgqkhpuixdrnevmaycd"
Beispiel #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)
Beispiel #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