Skip to content

Commit 6005648

Browse files
committed
Add a GitHub Action to run pytest
1 parent cf87407 commit 6005648

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: ci
2+
on: [pull_request, push]
3+
jobs:
4+
pytest:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v6
8+
- run: pipx run pytest --doctest-modules

flowsignal.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
return address need to be added to the return stack.
2222
2323
>>> flowsignal = FlowSignal(ftype=FlowSignal.RETURN)
24-
>>> print(flowsignal.ftarget)
25-
-1
24+
>>> flowsignal.ftarget is None
25+
True
26+
>>> flowsignal.ftype
27+
5
2628
>>> flowsignal = FlowSignal(ftarget=100, ftype=FlowSignal.SIMPLE_JUMP)
27-
>>> print(flowsignal.ftarget)
29+
>>> flowsignal.ftarget
2830
100
29-
>>> print(flowsignal.ftype)
31+
>>> flowsignal.ftype
3032
0
3133
"""
3234

0 commit comments

Comments
 (0)