Skip to content

Commit a937bd4

Browse files
committed
Adding test
1 parent a1ec8e7 commit a937bd4

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

toolkit/epanet/toolkit/toolkit.i

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,13 @@ class AnalysisStatistic(enum.Enum):
328328

329329

330330
class CountType(enum.Enum):
331-
NODECOUNT = EN_NODECOUNT
332-
TANKCOUNT = EN_TANKCOUNT
333-
LINKCOUNT = EN_LINKCOUNT
334-
PATCOUNT = EN_PATCOUNT
335-
CURVECOUNT = EN_CURVECOUNT
336-
CONTROLCOUNT = EN_CONTROLCOUNT
337-
RULECOUNT = EN_RULECOUNT
331+
NODES = EN_NODECOUNT
332+
TANKS = EN_TANKCOUNT
333+
LINKS = EN_LINKCOUNT
334+
PTRNS = EN_PATCOUNT
335+
CURVS = EN_CURVECOUNT
336+
CTRLS = EN_CONTROLCOUNT
337+
RULES = EN_RULECOUNT
338338

339339

340340
class NodeType(enum.Enum):

toolkit/tests/test_toolkit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def test_qual_step(handle):
8989

9090
def test_report(handle):
9191

92+
nlinks = en.rprt_getcount(handle, en.CountType.LINKS)
9293
en.hydr_solve(handle)
9394
en.qual_solve(handle)
9495

0 commit comments

Comments
 (0)