pocketpy/tests/_os_path.py
blueloveTH e737c33b85 up
2022-12-22 11:03:15 +08:00

12 lines
249 B
Python

import os
# test os.path.join
f = os.path.join
assert f('/', 'a') == '/a'
assert f('/', 'a/', 'b/') == '/a/b/'
assert f('c', 'd') == 'c/d'
assert f('C:\\', 'a') == 'C:/a'
assert f('C:\\', 'a\\', 'b\\') == 'C:/a/b/'
assert f('c\\', 'd/') == 'c/d/'