mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
added commonprefix test cases
This commit is contained in:
parent
533bc9ad42
commit
877d62e72d
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,12 @@ tester('ntpath.isabs("\\foo\\bar")', 1)
|
|||
|
||||
tester('ntpath.abspath("C:\\")', "C:\\")
|
||||
|
||||
tester('ntpath.commonprefix(["/home/swenson/spam", "/home/swen/spam"])',
|
||||
"/home/swen")
|
||||
tester('ntpath.commonprefix(["\\home\\swen\\spam", "\\home\\swen\\eggs"])',
|
||||
"\\home\\swen\\")
|
||||
tester('ntpath.commonprefix(["/home/swen/spam", "/home/swen/spam"])',
|
||||
"/home/swen/spam")
|
||||
|
||||
if errors:
|
||||
print str(errors) + " errors."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue