MCPcopy Index your code
hub / github.com/RustPython/RustPython / longer_match_exists

Method longer_match_exists

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

Source from the content-addressed store, hash-verified

560
561class TestFindLongest(unittest.TestCase):
562 def longer_match_exists(self, a, b, n):
563 return any(b_part in a for b_part in
564 [b[i:i + n + 1] for i in range(0, len(b) - n - 1)])
565
566 def test_default_args(self):
567 a = 'foo bar'

Callers 2

test_default_argsMethod · 0.95

Calls 2

lenFunction · 0.85
anyFunction · 0.50

Tested by

no test coverage detected