def test_part1(self): day11.part1(self.data1)
def test_part1(puzzle_input, answer): assert part1(puzzle_input) == answer
def test_part1(self): self.assertEqual(2211, part1())
def test_part1_input(self): result = day11.part1(aoc.read_input('day11.input')) self.assertEqual(2252, result)
def test_day11_part1(): assert day11.part1(day11_example) == 37
def test_part1_on_example_data(self): input = read_inputfile("example11a.txt") self.assertEqual(part1(input), 37)
def test_11_1_examples(): examples = [] for (inp, out) in examples: assert out == day11.part1(inp)
def test_part1(): d = day11.part1(GRID_SERIAL_NUM) assert d.total == 29 assert d.x == 21 assert d.y == 34
def test_part1_example(self): self.assertEqual( 37, day11.part1(test_seats) )
def test_part1(self): with open("../inputs/day11.txt") as day11_file: self.assertEqual( 2093, day11.part1(day11_file.read()) )
def test_part1(): assert part1(test_input) == 1656
def test_part1_input( self ): result = day11.part1( aoc.read_input( 'day11.input' ) ) self.assertEqual( result, '245,14' )
def test_part1_example1( self ): self.assertEqual( day11.part1( [ 18 ] ), '33,45' ) self.assertEqual( day11.part1( [ 42 ] ), '21,61' )
def test_part1_sample(sample_data): assert part1(sample_data) == 37
def test_part1_input(input_data): assert part1(input_data) == 2261