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