You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AdventOfCode19/days/test_day09.py

17 lines
382 B

import os
from .comp import OpcodeComputer
inputfile = os.path.join(os.path.dirname(__file__), "input/day09_input")
def test_day9a():
comp = OpcodeComputer(inputfile)
res = list(comp.process_op([1]))
assert res[0] == 3638931938
def test_day9b():
comp = OpcodeComputer(inputfile)
res = list(comp.process_op([2]))
assert res[0] == 86025