MCPcopy Create free account
hub / github.com/boostorg/build / match_exact

Function match_exact

v2/test/TestCmd.py:177–192  ·  view source on GitHub ↗

Returns whether the given lists or strings containing lines separated using newline characters contain exactly the same data.

(lines=None, matches=None)

Source from the content-addressed store, hash-verified

175
176
177def match_exact(lines=None, matches=None):
178 """
179 Returns whether the given lists or strings containing lines separated
180 using newline characters contain exactly the same data.
181
182 """
183 if not type(lines) is ListType:
184 lines = split(lines, "\n")
185 if not type(matches) is ListType:
186 matches = split(matches, "\n")
187 if len(lines) != len(matches):
188 return
189 for i in range(len(lines)):
190 if lines[i] != matches[i]:
191 return
192 return 1
193
194
195def match_re(lines=None, res=None):

Callers 1

match_exactMethod · 0.85

Calls 1

splitFunction · 0.85

Tested by

no test coverage detected