Skip to content

Commit

Permalink
Add num to coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdrozd committed Aug 10, 2023
1 parent 6e64a56 commit fdace8d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ COV = test.test_coverage
LR = test.test_lin_rado
CG = test.test_code
TP = test.test_tape
NUM = test.test_num

SHORT_TESTS = $(PROG) $(GRAPH) $(CG) $(TP) $(COV)
SHORT_TESTS = $(PROG) $(GRAPH) $(CG) $(TP) $(COV) $(NUM)

PYTEST = $(PYTHON) -m unittest

Expand Down
7 changes: 7 additions & 0 deletions test/test_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,10 @@ def test_diff_lim(self):
Machine(
"1RB 1LA 1LC 0RD ... 0RA 1LD 0LA"
).run())

def test_num(self):
print(
Machine(
"1RB 1R_ 0LC 0LD 1LD 1LC 1RE 1LB 1RF 1RD 0LD 0RA",
opt_blocks = 56,
).run().marks)

0 comments on commit fdace8d

Please sign in to comment.