added commonprefix test cases
This commit is contained in:
parent
533bc9ad42
commit
877d62e72d
|
@ -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…
Reference in New Issue