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

Function test_dict_style_fields

tests/test_pattern.py:78–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76
77
78def test_dict_style_fields():
79 res = parse.parse("{hello[world]}_{hello[foo][baz]}_{simple}", "a_b_c")
80 assert res.named["hello"]["world"] == "a"
81 assert res.named["hello"]["foo"]["baz"] == "b"
82 assert res.named["simple"] == "c"
83
84
85def test_dot_separated_fields_name_collisions():

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected