summaryrefslogtreecommitdiff
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2000-08-23 16:54:27 +0000
committerSkip Montanaro <skip@pobox.com>2000-08-23 16:54:27 +0000
commitabed8c324d09795e085a6c724b10a63b025bc4a6 (patch)
treeb05ecd9e9be206167cdb2f9c88961b840d042e2b /Lib/test/test_ntpath.py
parentbc53dcbe191795e915a8aca45374dc18bca94231 (diff)
downloadcpython-abed8c324d09795e085a6c724b10a63b025bc4a6.tar.gz
added commonprefix test cases
Diffstat (limited to 'Lib/test/test_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py6
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."