parent
c3db008d82
commit
1efcea9617
2 changed files with 8 additions and 9 deletions
@ -1,9 +1,8 @@ |
||||
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') |
||||
|
||||
assert(join_paths('foo') == 'foo', 'Single argument join is broken') |
||||
assert(join_paths('foo', 'bar') == 'foo/bar', 'Path joining is broken') |
||||
assert(join_paths('foo', 'bar', 'baz') == 'foo/bar/baz', 'Path joining is broken') |
||||
assert(join_paths('/foo', 'bar') == '/foo/bar', 'Path joining is broken') |
||||
assert(join_paths('foo', '/bar') == '/bar', 'Absolute path joining is broken') |
||||
assert(join_paths('/foo', '/bar') == '/bar', 'Absolute path joining is broken') |
||||
|
Loading…
Reference in new issue