Example #1
0
def test_day2_1():
    assert day2.solution([1, 0, 0, 0, 99]) == [2, 0, 0, 0, 99]
Example #2
0
def test_day2_2():
    assert day2.solution([2, 3, 0, 3, 99]) == [2, 3, 0, 6, 99]
Example #3
0
def test_day2_4():
    assert day2.solution([1, 1, 1, 4, 99, 5, 6, 0,
                          99]) == [30, 1, 1, 4, 2, 5, 6, 0, 99]
Example #4
0
def test_day2_3():
    assert day2.solution([2, 4, 4, 5, 99, 0]) == [2, 4, 4, 5, 99, 9801]
Example #5
0
def test_day2_real():
    result = day2.solution("input")
    assert result == 607
Example #6
0
def test_day2():
    result = day2.solution("test_1")
    assert result == 2
Example #7
0
 def test_solution(self):
     self.assertEqual(day2.solution(self.sample), self.chksum)