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:
parent
4794f0b234
commit
e5a611c1bc
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue