Home
last modified time | relevance | path

Searched refs:assert_match (Results 1 – 15 of 15) sorted by relevance

/external/python/parse_type/tests/
Dtest_builder.py37 self.assert_match(parser, "Answer: yes", "answer", True)
38 self.assert_match(parser, "Answer: no", "answer", False)
41 self.assert_match(parser, "Answer: YES", "answer", True)
61 self.assert_match(parser, "Answer: one", "number", 1)
62 self.assert_match(parser, "Answer: two", "number", 2)
65 self.assert_match(parser, "Answer: THREE", "number", 3)
92 self.assert_match(parser, "Answer: red", "color", Color.red)
93 self.assert_match(parser, "Answer: green", "color", Color.green)
94 self.assert_match(parser, "Answer: blue", "color", Color.blue)
97 self.assert_match(parser, "Answer: RED", "color", Color.red)
[all …]
Dtest_cardinality_field0.py53 self.assert_match(parser, "One: Alice", "person", "Alice")
54 self.assert_match(parser, "One: Bob", "person", "Bob")
71 self.assert_match(parser, "Optional: ", "person", None)
72 self.assert_match(parser, "Optional: Alice", "person", "Alice")
73 self.assert_match(parser, "Optional: Bob", "person", "Bob")
89 self.assert_match(parser, "List: Alice", "persons", [ "Alice" ])
90 self.assert_match(parser, "List: Bob", "persons", [ "Bob" ])
91 self.assert_match(parser, "List: Bob, Alice",
110 self.assert_match(parser, "List: ", "persons", [ ])
111 self.assert_match(parser, "List: Alice", "persons", [ "Alice" ])
[all …]
Dtest_cfparse.py41 self.assert_match(parser, "Number: 42", "number", 42)
42 self.assert_match(parser, "Number: 123", "number", 123)
58 self.assert_match(parser, "OptionalNumber: 42", "number", 42)
59 self.assert_match(parser, "OptionalNumber: 123", "number", 123)
60 self.assert_match(parser, "OptionalNumber: ", "number", None)
76 self.assert_match(parser, "List: 42", "numbers", [42])
77 self.assert_match(parser, "List: 1, 2, 3", "numbers", [1, 2, 3])
78 self.assert_match(parser, "List: 4,5,6", "numbers", [4, 5, 6])
100 self.assert_match(parser, "List: 42", "numbers", [42])
101 self.assert_match(parser, "List: 1; 2; 3", "numbers", [1, 2, 3])
[all …]
Dtest_cardinality.py125 self.assert_match(parser, "Optional: ", "number", None)
126 self.assert_match(parser, "Optional: 1", "number", 1)
127 self.assert_match(parser, "Optional: 42", "number", 42)
147 self.assert_match(parser, "List: ", "numbers", [ ])
148 self.assert_match(parser, "List: 1", "numbers", [ 1 ])
149 self.assert_match(parser, "List: 1, 2", "numbers", [ 1, 2 ])
150 self.assert_match(parser, "List: 1, 2, 3", "numbers", [ 1, 2, 3 ])
168 self.assert_match(parser, "List: 1", "numbers", [ 1 ])
169 self.assert_match(parser, "List: 1, 2", "numbers", [ 1, 2 ])
170 self.assert_match(parser, "List: 1, 2, 3", "numbers", [ 1, 2, 3 ])
[all …]
Dtest_parse_decorator.py90 self.assert_match(parser, "Test: 1", "number", 1)
91 self.assert_match(parser, "Test: 42", "number", 42)
92 self.assert_match(parser, "Test: 123", "number", 123)
113 self.assert_match(parser, "Test: Alice", "person", "Alice")
114 self.assert_match(parser, "Test: Bob", "person", "Bob")
Dparse_type_test.py62 def assert_match(self, parser, text, param_name, expected): member in ParseTypeTestCase
95 self.assert_match(parser, text, name, value)
105 self.assert_match(parser, text, name, expected_value)
116 self.assert_match(parser, text, name, expected_value)
Dtest_parse.py806 def assert_match(self, parser, text, param_name, expected): member in TestParseType
832 self.assert_match(parser, "Value is 42 and...", "number", 42)
833 self.assert_match(parser, "Value is 00123 and...", "number", 123)
855 self.assert_match(parser, text, "answer", value)
858 self.assert_match(parser, "Answer: YES", "answer", True)
869 self.assert_match(parser, 'test a', 'result', 1)
870 self.assert_match(parser, 'test b', 'result', 2)
895 self.assert_match(parser2, 'test meter-10', 'unit', 'meter')
896 self.assert_match(parser2, 'test meter-10', 'value', 10)
897 self.assert_match(parser2, 'test kilometer-20', 'unit', 'kilometer')
[all …]
/external/llvm-project/lldb/test/API/tools/lldb-server/test/
Dtest_lldbgdbserverutils.py13 entry.assert_match(self, "$OK#9a")
17 entry.assert_match(self, "$OK#00")
21 context = entry.assert_match(self, "$OK#9a")
30 context = entry.assert_match(self, "$QC980#00")
38 context = entry.assert_match(self, "$QC980#00")
48 entry.assert_match(self, "$T11thread:980;", context=context)
58 entry.assert_match(self, "$T11thread:970;", context=context)
/external/protobuf/ruby/tests/
Dencode_decode_test.rb74 assert_match 'optional_int32', json
85 assert_match 'optional_int32', json
Dbasic_proto2.rb205 assert_match(/hello/, e.message)
243 assert_match(/Cannot add a native map/, e.message)
Dbasic.rb152 assert_match(/hello/, e.message)
271 assert_match(/No such field: not_in_message/, e.message)
Dcommon_tests.rb147 assert_match(/hello/, e.message)
152 assert_match(/hello/, e.message)
/external/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/
Dlldbgdbserverutils.py247 context = sequence_entry.assert_match(
536 def assert_match(self, asserter, actual_packet, context=None): member in GdbRemoteEntry
645 def assert_match(self, asserter, actual_packet, context=None): member in MultiResponseGdbRemoteEntry
738 def assert_match(self, asserter, accumulated_output, context): member in MatchRemoteOutputEntry
/external/rust/crates/grpcio-sys/grpc/third_party/upb/third_party/lunit/
Dlunit.lua249 function assert_match(pattern, actual, msg) function
262 traceback_hide( assert_match )
/external/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dbasic.rb198 assert_match(/hello/, e.message)
203 assert_match(/hello/, e.message)
210 assert_match(/hello/, e.message)