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

Method test_commonprefix

Lib/test/test_ntpath.py:299–305  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

297 tester('ntpath.isabs("\\\\.\\C:")', 1)
298
299 def test_commonprefix(self):
300 tester('ntpath.commonprefix(["/home/swenson/spam", "/home/swen/spam"])',
301 "/home/swen")
302 tester('ntpath.commonprefix(["\\home\\swen\\spam", "\\home\\swen\\eggs"])',
303 "\\home\\swen\\")
304 tester('ntpath.commonprefix(["/home/swen/spam", "/home/swen/spam"])',
305 "/home/swen/spam")
306
307 def test_join(self):
308 tester('ntpath.join("")', '')

Callers

nothing calls this directly

Calls 1

testerFunction · 0.85

Tested by

no test coverage detected