Beispiel #1
0
def test_day09_part2():
    code = Code(open('input09.txt'))
    assert day09.part2(code) == [51754]
def test_part2_input(input_data):
    goal = 556543474
    assert part2(input_data, goal) == 76096372
Beispiel #3
0
 def test_part2_on_example_data(self):
     input = read_inputfile(examplefile)
     self.assertEqual(day09.part2(input, 5), 62)
Beispiel #4
0
 def test_part2_input(self):
     result = day09.part2(aoc.read_input('day09.input'))
     self.assertEqual(73439, result)
Beispiel #5
0
def test_part2(puzzle_input, preamble_len, answer):
    assert part2(puzzle_input, preamble_len) == answer
Beispiel #6
0
def test_part2():
    assert part2("day09/day09.dat") == 3_156_297_594
Beispiel #7
0
def test_day09_part2():
    assert day09.part2(day09_example, 5) == 62
Beispiel #8
0
 def test_part2_input( self ):
     result = day09.part2( aoc.read_input( 'day09.input' ) )
     self.assertEqual( result, 3273842452 )
def test_9_2_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day09.part2(inp)
Beispiel #10
0
 def test_part2(self):
     file_data = parse("../../07/input.txt")
     [max_val, max_seq] = part2(file_data)
     self.assertEqual(max_val, 12932154)