tangled
alpha
login
or
join now
nonbinary.computer
/
or1-design
0
fork
atom
OR-1 dataflow CPU sketch
0
fork
atom
overview
issues
pulls
pipelines
fix: correct act_id parameter in MonadToken creation and tests
Orual
2 weeks ago
7842e5f1
941b2946
+2
-2
2 changed files
expand all
collapse all
unified
split
monitor
repl.py
tests
test_repl.py
+1
-1
monitor/repl.py
···
334
334
act_id = int(parts[2])
335
335
data = int(parts[3])
336
336
337
337
-
return MonadToken(target=target, offset=offset, ctx=act_id, data=data, inline=False)
337
337
+
return MonadToken(target=target, offset=offset, act_id=act_id, data=data, inline=False)
338
338
339
339
def do_state(self, arg: str) -> None:
340
340
"""Display current simulation state: state
+1
-1
tests/test_repl.py
···
750
750
assert isinstance(token, MonadToken)
751
751
assert token.target == 0
752
752
assert token.offset == 10
753
753
-
assert token.ctx == 5
753
753
+
assert token.act_id == 5
754
754
assert token.data == 42
755
755
assert token.inline is False
756
756