def test_part1_sample(sample_data):
    assert part1(sample_data) == 306
예제 #2
0
def test_part1(puzzle_input, answer):
    assert part1(puzzle_input) == answer
예제 #3
0
 def test_part1_on_example_data(self):
     input = read_inputfile("example22.txt")
     self.assertEqual(part1(input), 306)
def test_part1_input(input_data):
    assert part1(input_data) == 33694
예제 #5
0
def test_day22_part1():
    assert day22.part1(day22_example) == 306
예제 #6
0
 def test_part1_input(self):
     risk_level = day22.part1(aoc.read_input('day22.input'))
     self.assertEqual(6323, risk_level)
예제 #7
0
 def test_part1_example1(self):
     risk_level = day22.part1(self.example_input)
     self.assertEqual(114, risk_level)
예제 #8
0
def test_22_1_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day22.part1(inp)
예제 #9
0
 def test_part1_input(self):
     result = day22.part1(aoc.read_input('day22.input'))
     self.assertEqual(6326, result)