diff options
author | Skip Montanaro <skip@pobox.com> | 2000-08-23 16:54:27 +0000 |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2000-08-23 16:54:27 +0000 |
commit | abed8c324d09795e085a6c724b10a63b025bc4a6 (patch) | |
tree | b05ecd9e9be206167cdb2f9c88961b840d042e2b /Lib/test/test_ntpath.py | |
parent | bc53dcbe191795e915a8aca45374dc18bca94231 (diff) | |
download | cpython-abed8c324d09795e085a6c724b10a63b025bc4a6.tar.gz |
added commonprefix test cases
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r-- | Lib/test/test_ntpath.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py index ae9054b3a8..11f2f44167 100644 --- a/Lib/test/test_ntpath.py +++ b/Lib/test/test_ntpath.py @@ -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." |