Esempio n. 1
0
 def test_part1_input(self):
     num_units = day24.part1(aoc.read_input('day24.input'))
     self.assertEqual(14799, num_units)
Esempio n. 2
0
def test_day24_part1():
    assert day24.part1('''....#
#..#.
#..##
..#..
#....''') == 2129920
Esempio n. 3
0
 def test_part1_example1(self):
     num_units = day24.part1(self.example_input1)
     self.assertEqual(5216, num_units)
def test_part1_input(input_data):
    assert part1(input_data) == 386
Esempio n. 5
0
 def test_part1_input(self):
     result = day24.part1(aoc.read_input('day24.input'))
     self.assertEqual(26840049, result)
def test_part1_sample(sample_data):
    assert part1(sample_data) == 10
Esempio n. 7
0
def test_day24_part1():
    assert day24.part1(day24_example) == 10
def test_24_1_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day24.part1(inp)
Esempio n. 9
0
def test_part1(puzzle_input, answer):
    assert part1(puzzle_input) == answer
Esempio n. 10
0
 def test_part1_on_example_data(self):
     input = read_inputfile("example24.txt")
     self.assertEqual(part1(input), 10)