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

Function test_dot_separated_fields

tests/test_pattern.py:70–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68
69
70def test_dot_separated_fields():
71 # this should just work and provide the named value
72 res = parse.parse("{hello.world}_{jojo.foo.baz}_{simple}", "a_b_c")
73 assert res.named["hello.world"] == "a"
74 assert res.named["jojo.foo.baz"] == "b"
75 assert res.named["simple"] == "c"
76
77
78def test_dict_style_fields():

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected