mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
12 lines
249 B
Python
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/' |