diff options
Diffstat (limited to 'Lib/test/test_posixpath.py')
| -rw-r--r-- | Lib/test/test_posixpath.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 362483f..0aaddaf 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -21,6 +21,11 @@ tester('posixpath.split("foo")', ('', 'foo')) tester('posixpath.splitext("foo.ext")', ('foo', '.ext')) tester('posixpath.splitext("/foo/foo.ext")', ('/foo/foo', '.ext')) +tester('posixpath.splitext(".ext")', ('', '.ext')) +tester('posixpath.splitext("/foo.ext/foo")', ('/foo.ext/foo', '')) +tester('posixpath.splitext("foo.ext/")', ('foo.ext/', '')) +tester('posixpath.splitext("")', ('', '')) +tester('posixpath.splitext("foo.bar.ext")', ('foo.bar', '.ext')) tester('posixpath.isabs("/")', 1) tester('posixpath.isabs("/foo")', 1) |
