MCPcopy Index your code
hub / github.com/python/cpython / longer_match_exists

Method longer_match_exists

Lib/test/test_difflib.py:578–580  ·  view source on GitHub ↗
(self, a, b, n)

Source from the content-addressed store, hash-verified

576
577class TestFindLongest(unittest.TestCase):
578 def longer_match_exists(self, a, b, n):
579 return any(b_part in a for b_part in
580 [b[i:i + n + 1] for i in range(0, len(b) - n - 1)])
581
582 def test_default_args(self):
583 a = 'foo bar'

Callers 2

test_default_argsMethod · 0.95

Calls 1

anyFunction · 0.50

Tested by

no test coverage detected