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.
20 lines
393 B
20 lines
393 B
import os
|
|
|
|
from . import OpcodeComputer
|
|
|
|
|
|
inputfile = os.path.join(os.path.dirname(__file__), "input/day5_input")
|
|
|
|
|
|
def test_day5a():
|
|
sut = OpcodeComputer(inputfile)
|
|
|
|
outp = list(sut.process_op([1]))
|
|
assert int(outp[-1]) == 8332629
|
|
|
|
|
|
def test_day5b():
|
|
sut = OpcodeComputer(inputfile)
|
|
|
|
outp = list(sut.process_op([5]))
|
|
assert int(outp[0]) == 8805067
|
|
|