From 877d62e72d00c356d443ef967e650c8e1e0bc1bb Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Wed, 23 Aug 2000 16:54:27 +0000 Subject: added commonprefix test cases --- Lib/test/test_ntpath.py | 6 ++++++ 1 file changed, 6 insertions(+) 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." -- cgit v0.12