Searched refs:zero_or_more (Results 1 – 4 of 4) sorted by relevance
/external/python/parse_type/parse_type/ |
D | cardinality.py | 31 zero_or_more = (r"(%s)?(\s*%s\s*(%s))*", 3) # SCHEMA: pattern sep pattern variable in Cardinality 36 many0 = zero_or_more 48 return ((self is Cardinality.zero_or_more) or 151 cardinality = Cardinality.zero_or_more
|
D | cardinality_field.py | 34 '*': Cardinality.zero_or_more,
|
/external/python/parse_type/tests/ |
D | test_cardinality.py | 21 assert Cardinality.many0 is Cardinality.zero_or_more 35 expected_pattern = Cardinality.zero_or_more.make_pattern(pattern) 66 (Cardinality.many0, "XXX", Cardinality.zero_or_more.make_pattern("XXX")), 90 new_pattern = Cardinality.zero_or_more.make_pattern(pattern) 103 [Cardinality.zero_or_more, Cardinality.one_or_more]) 345 Cardinality.zero_or_more, parse_number)
|
D | test_cardinality_field.py | 63 self.assertEqual(actual, ("Color", Cardinality.zero_or_more)) 118 type_name2 = CardinalityField.make_type("Number", Cardinality.zero_or_more)
|