Exemple #1
0
 def test_part1_5(self):
     result = day05.part1(['XXXAaAaXX'])
     self.assertEqual(result, 5)
Exemple #2
0
 def test_part1_input(self):
     result = day05.part1(aoc.read_input('day05.input'))
     self.assertEqual(result, 11152)
Exemple #3
0
 def test_part1_1(self):
     result = day05.part1(['Aa'])
     self.assertEqual(result, 0)
Exemple #4
0
 def test_part1_3(self):
     result = day05.part1(['AaAaXXAa'])
     self.assertEqual(result, 2)
Exemple #5
0
def test_day05_part1():
    assert day05.part1(['1002,4,3,4,33']) == None
Exemple #6
0
 def test_part1_example1(self):
     result = day05.part1(self.example)
     self.assertEqual(result, 10)
Exemple #7
0
 def test_regressions(self):
     self.assertEqual(5182797, part1())
     self.assertEqual(12077198, part2())
def test_part1_sample(input_data):
    assert part1(input_data) == 861
Exemple #9
0
def test_part1():
    assert part1("day05/day05.dat") == 10450
Exemple #10
0
 def test_part1_input(self):
     result = day05.part1(aoc.read_input('day05.input'))
     self.assertEqual(4887191, result)
Exemple #11
0
def test_part1():
    assert part1() == 360603
def test_5_1_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day05.part1(inp)
Exemple #13
0
 def test_part1_on_example_data(self):
     input = read_inputfile("example05.txt")
     self.assertEqual(day05.part1(input), 820)
Exemple #14
0
 def test_part1(self):
     input = ["BFFFBBFRRR", "FFFBBBFRRR", "BBFFBBFRLL"]
     self.assertEqual(day05.part1(input), 820)
Exemple #15
0
def test_part1():
    assert part1(PUZZLE_INPUT) == 994