Home
last modified time | relevance | path

Searched refs:one_or_more (Results 1 – 4 of 4) sorted by relevance

/external/python/parse_type/parse_type/
Dcardinality.py32 one_or_more = (r"(%s)(\s*%s\s*(%s))*", 3) # SCHEMA: pattern sep pattern variable in Cardinality
37 many = one_or_more
49 (self is Cardinality.one_or_more))
179 cardinality = Cardinality.one_or_more
Dcardinality_field.py35 '+': Cardinality.one_or_more,
/external/python/parse_type/tests/
Dtest_cardinality.py22 assert Cardinality.many is Cardinality.one_or_more
40 expected_pattern = Cardinality.one_or_more.make_pattern(pattern)
64 (Cardinality.one_or_more, r"\w+", None),
67 (Cardinality.many, "XXX", Cardinality.one_or_more.make_pattern("XXX")),
97 new_pattern = Cardinality.one_or_more.make_pattern(pattern)
103 [Cardinality.zero_or_more, Cardinality.one_or_more])
350 Cardinality.one_or_more, parse_number)
Dtest_cardinality_field.py59 self.assertEqual(actual, ("Color", Cardinality.one_or_more))
108 type_name2 = CardinalityField.make_type("Number", Cardinality.one_or_more)