Example #1
0
 def test_part1(self):
     with open("../inputs/day13.txt") as in_file:
         self.assertEqual(1835, day13.part1(in_file.read()))
Example #2
0
 def test_part1_example(self):
     self.assertEqual(
         295,
         day13.part1("939\n7,13,x,x,59,x,31,19"),
     )
Example #3
0
 def test_part1_input(self):
     result = day13.part1(aoc.read_input('day13.input'))
     self.assertEqual(376, result)
Example #4
0
 def test_part1_on_example_data(self):
     input = read_inputfile("example13.txt")
     self.assertEqual(part1(input), 295)
Example #5
0
def test_part1():
    assert part1() == 239
Example #6
0
def test_day13_part1():
    assert day13.part1(day13_example) == 295
def test_13_1_examples():
    examples = []
    for (inp, out) in examples:
        assert out == day13.part1(inp)
def test_part1_sample(sample_data):
    assert part1(sample_data) == 295
def test_part1_input(input_data):
    assert part1(input_data) == 1895
Example #10
0
 def test_part1(self):
     self.assertEqual(1915, part1())
Example #11
0
def test_part1():
    assert part1(test_input) == 17