Example #1
0
 def test_part1(self):
     day11.part1(self.data1)
Example #2
0
def test_part1(puzzle_input, answer):
    assert part1(puzzle_input) == answer
Example #3
0
 def test_part1(self):
     self.assertEqual(2211, part1())
Example #4
0
 def test_part1_input(self):
     result = day11.part1(aoc.read_input('day11.input'))
     self.assertEqual(2252, result)
Example #5
0
def test_day11_part1():
    assert day11.part1(day11_example) == 37
Example #6
0
 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)
Example #8
0
def test_part1():
    d = day11.part1(GRID_SERIAL_NUM)
    assert d.total == 29
    assert d.x == 21
    assert d.y == 34
Example #9
0
 def test_part1_example(self):
     self.assertEqual(
         37,
         day11.part1(test_seats)
     )
Example #10
0
 def test_part1(self):
     with open("../inputs/day11.txt") as day11_file:
         self.assertEqual(
             2093,
             day11.part1(day11_file.read())
         )
Example #11
0
def test_part1():
    assert part1(test_input) == 1656
Example #12
0
 def test_part1_input( self ):
     result = day11.part1( aoc.read_input( 'day11.input' ) )
     self.assertEqual( result, '245,14' )
Example #13
0
 def test_part1_example1( self ):
     self.assertEqual( day11.part1( [ 18 ] ), '33,45' )
     self.assertEqual( day11.part1( [ 42 ] ), '21,61' )
Example #14
0
def test_part1_sample(sample_data):
    assert part1(sample_data) == 37
Example #15
0
def test_part1_input(input_data):
    assert part1(input_data) == 2261