Add reservoir test case

This commit is contained in:
wqy
2022-09-17 19:38:43 +08:00
parent 89ffd15b7b
commit b8d2efdc66
6 changed files with 57 additions and 20 deletions

View File

@@ -142,4 +142,7 @@ def set_tank_overflow(name: str, id: str, overflow: str) -> ChangeSet:
def set_tank_coord(name: str, id: str, x: float, y: float) -> ChangeSet:
return set_node_coord(name, id, x, y)
if not is_tank(name, id):
return ChangeSet()
return set_node_coord(name, TANK, id, x, y)