parent
0a2598ffc4
commit
efdfda3df2
File diff suppressed because one or more lines are too long
@ -0,0 +1,15 @@ |
||||
import os |
||||
|
||||
from .comp import OpcodeComputer |
||||
|
||||
|
||||
inputfile = os.path.join(os.path.dirname(__file__), "input/day13_input") |
||||
|
||||
|
||||
def test_day13a(): |
||||
comp = OpcodeComputer(inputfile).process_op([]) |
||||
res = 0 |
||||
for _ in comp: |
||||
comp.__next__() |
||||
res += 1 if comp.__next__() == 2 else 0 |
||||
assert res == 309 |
||||
Loading…
Reference in new issue