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

Method test_split

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

Source from the content-addressed store, hash-verified

252 (b'\\\\\xff\\\xfe', b'\\', b'\xfd'))
253
254 def test_split(self):
255 tester('ntpath.split("c:\\foo\\bar")', ('c:\\foo', 'bar'))
256 tester('ntpath.split("\\\\conky\\mountpoint\\foo\\bar")',
257 ('\\\\conky\\mountpoint\\foo', 'bar'))
258
259 tester('ntpath.split("c:\\")', ('c:\\', ''))
260 tester('ntpath.split("\\\\conky\\mountpoint\\")',
261 ('\\\\conky\\mountpoint\\', ''))
262
263 tester('ntpath.split("c:/")', ('c:/', ''))
264 tester('ntpath.split("//conky/mountpoint/")', ('//conky/mountpoint/', ''))
265
266 def test_split_invalid_paths(self):
267 split = ntpath.split

Callers

nothing calls this directly

Calls 1

testerFunction · 0.85

Tested by

no test coverage detected