A couple more test cases to ensure join() doesn't add an "extra" backslash

in the presence of empty-string arguments.
This commit is contained in:
Tim Peters 2001-11-05 21:33:04 +00:00
parent 4794f0b234
commit e5a611c1bc
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ tester("ntpath.join('', 'a')", 'a')
tester("ntpath.join('', '', '', '', 'a')", 'a')
tester("ntpath.join('a', '')", 'a\\')
tester("ntpath.join('a', '', '', '', '')", 'a\\')
tester("ntpath.join('a\\', '')", 'a\\')
tester("ntpath.join('a\\', '', '', '', '')", 'a\\')
tester("ntpath.normpath('A//////././//.//B')", r'A\B')
tester("ntpath.normpath('A/./B')", r'A\B')