X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fpath_test.cxx;h=459f064cdd78a3464851863b5badecfda75db4c6;hb=f14ffd5b1db1c243d47eccd2a37c71f719c33681;hp=cda488590c42d2921aba99e0fb13273c75e3ce6b;hpb=e34f597fe2ffe9f4a05bb66623cc8d8e06c433f0;p=simgear.git diff --git a/simgear/misc/path_test.cxx b/simgear/misc/path_test.cxx index cda48859..459f064c 100644 --- a/simgear/misc/path_test.cxx +++ b/simgear/misc/path_test.cxx @@ -135,6 +135,14 @@ int main(int argc, char* argv[]) #else COMPARE(d1.str_native(), std::string("/usr/local")); #endif + +// paths with only the file components + SGPath pf("something.txt.gz"); + COMPARE(pf.base(), "something.txt"); + COMPARE(pf.file(), "something.txt.gz"); + COMPARE(pf.dir(), ""); + COMPARE(pf.lower_extension(), "gz"); + COMPARE(pf.complete_lower_extension(), "txt.gz"); test_dir();