diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-12-20 06:10:25 -0500 |
---|---|---|
committer | Michael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com> | 2020-02-06 12:54:38 -0500 |
commit | 5bbeab8ed461bc2464d9b590b2faf758aa854362 (patch) | |
tree | a04df538dbca87a223dc0d0aee95aaa20bfa0163 /test cases | |
parent | 92534855cc11e0939f769e19d995be0605be2fb2 (diff) | |
download | meson-5bbeab8ed461bc2464d9b590b2faf758aa854362.zip meson-5bbeab8ed461bc2464d9b590b2faf758aa854362.tar.gz meson-5bbeab8ed461bc2464d9b590b2faf758aa854362.tar.bz2 |
add fs.stem()
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/227 fs module/meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/common/227 fs module/meson.build b/test cases/common/227 fs module/meson.build index 8a77fdf..a732768 100644 --- a/test cases/common/227 fs module/meson.build +++ b/test cases/common/227 fs module/meson.build @@ -107,7 +107,11 @@ if not is_windows and build_machine.system() != 'cygwin' and is_git_checkout assert(fs.is_samepath('a_symlink', 'meson.build'), 'symlink is_samepath fail') endif +# parts of path assert(fs.parent('foo/bar') == 'foo', 'failed to get dirname') assert(fs.name('foo/bar') == 'bar', 'failed to get basename') +assert(fs.name('foo/bar/baz.dll.a') == 'baz.dll.a', 'failed to get basename with compound suffix') +assert(fs.stem('foo/bar/baz.dll') == 'baz', 'failed to get stem with suffix') +assert(fs.stem('foo/bar/baz.dll.a') == 'baz.dll', 'failed to get stem with compound suffix') subdir('subdir') |