Searched refs:one_or_more (Results 1 – 4 of 4) sorted by relevance
/external/python/parse_type/parse_type/ |
D | cardinality.py | 32 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
|
D | cardinality_field.py | 35 '+': Cardinality.one_or_more,
|
/external/python/parse_type/tests/ |
D | test_cardinality.py | 22 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)
|
D | test_cardinality_field.py | 59 self.assertEqual(actual, ("Color", Cardinality.one_or_more)) 108 type_name2 = CardinalityField.make_type("Number", Cardinality.one_or_more)
|