parent
6eacca2024
commit
c2b852c9b3
2 changed files with 19 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
project('pathjoin', 'c') |
||||
|
||||
assert(path_join('foo') == 'foo', 'Single argument join is broken') |
||||
assert(path_join('foo', 'bar') == 'foo/bar', 'Path joining is broken') |
||||
assert(path_join('foo', 'bar', 'baz') == 'foo/bar/baz', 'Path joining is broken') |
||||
assert(path_join('/foo', 'bar') == '/foo/bar', 'Path joining is broken') |
||||
assert(path_join('foo', '/bar') == '/bar', 'Absolute path joining is broken') |
||||
assert(path_join('/foo', '/bar') == '/bar', 'Absolute path joining is broken') |
||||
|
Loading…
Reference in new issue