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