Exemple #1
0
 def test_part1_example1(self):
     num_bots = day23.part1(self.example_input1)
     self.assertEqual(7, num_bots)
Exemple #2
0
 def test_part1_input(self):
     risk_level = day23.part1(aoc.read_input('day23.input'))
     self.assertEqual(588, risk_level)
Exemple #3
0
def test_day23_part1():
    assert day23.part1('389125467') == '67384529'
Exemple #4
0
 def test_part1_input(self):
     result = day23.part1(aoc.read_input('day23.input'))
     self.assertEqual(21089, result)
def test_23_1_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day23.part1(inp)
Exemple #6
0
def test_part1(puzzle_input, answer):
    assert part1(puzzle_input) == answer
def test_part1_sample_100_rounds():
    assert part1('389125467') == '67384529'
def test_part1_sample_10_rounds():
    assert part1('389125467', 10) == '92658374'
def test_part1_input():
    assert part1('784235916') == '53248976'