mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Move some tests from test_macpath to test_genericpath.CommonTest
This commit is contained in:
parent
fed15766f9
commit
6f682be82b
2 changed files with 12 additions and 10 deletions
|
@ -47,6 +47,18 @@ class GenericTest(unittest.TestCase):
|
|||
commonprefix(["/home/swen/spam", "/home/swen/spam"]),
|
||||
"/home/swen/spam"
|
||||
)
|
||||
self.assertEqual(
|
||||
commonprefix(["home:swenson:spam", "home:swen:spam"]),
|
||||
"home:swen"
|
||||
)
|
||||
self.assertEqual(
|
||||
commonprefix([":home:swen:spam", ":home:swen:eggs"]),
|
||||
":home:swen:"
|
||||
)
|
||||
self.assertEqual(
|
||||
commonprefix([":home:swen:spam", ":home:swen:spam"]),
|
||||
":home:swen:spam"
|
||||
)
|
||||
|
||||
testlist = ['', 'abc', 'Xbcd', 'Xb', 'XY', 'abcd',
|
||||
'aXc', 'abd', 'ab', 'aX', 'abcX']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue