From fdace8dab9e2aa5712567ce9fc4540584994c71e Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Thu, 10 Aug 2023 15:45:25 -0400 Subject: [PATCH] Add num to coverage --- Makefile | 3 ++- test/test_coverage.py | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9e845e10..51fc5972 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/test/test_coverage.py b/test/test_coverage.py index aadcef1f..a1c1ac35 100644 --- a/test/test_coverage.py +++ b/test/test_coverage.py @@ -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)