summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2000-08-23 16:54:27 (GMT)
committerSkip Montanaro <skip@pobox.com>2000-08-23 16:54:27 (GMT)
commit877d62e72d00c356d443ef967e650c8e1e0bc1bb (patch)
tree4a01a71388d6e7e8deea18a552d8de541a36e9fd /Lib/test/test_ntpath.py
parent533bc9ad422874acee7cb961f99a67806b436a74 (diff)
downloadcpython-877d62e72d00c356d443ef967e650c8e1e0bc1bb.zip
cpython-877d62e72d00c356d443ef967e650c8e1e0bc1bb.tar.gz
cpython-877d62e72d00c356d443ef967e650c8e1e0bc1bb.tar.bz2
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 ae9054b..11f2f44 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."