MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / parse_int_list

Function parse_int_list

tests/dump_phase7_reference.py:112–118  ·  view source on GitHub ↗
(field: str)

Source from the content-addressed store, hash-verified

110
111
112def parse_int_list(field: str) -> List[int]:
113 if not field:
114 return []
115 vals = []
116 for part in field.split("|"):
117 vals.append(-1 if part == "-" else int(part))
118 return vals
119
120
121def load_cases(path: str) -> List[Phase7Case]:

Callers 1

load_casesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected