added commonprefix test cases

This commit is contained in:
Skip Montanaro 2000-08-23 16:54:27 +00:00
parent 533bc9ad42
commit 877d62e72d
1 changed files with 6 additions and 0 deletions

View File

@ -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."