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