MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_mixed

Function test_mixed

tests/test_parse.py:178–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176
177
178def test_mixed():
179 # pull a fixed and named values out of string
180 r = parse.parse("hello {} {name} {} {spam}", "hello world and other beings")
181 assert r.fixed == ("world", "other")
182 assert r.named == {"name": "and", "spam": "beings"}
183
184
185def test_named_typed():

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected