cmdlib: another test for StripFilename

This commit is contained in:
Eric Wasylishen 2019-10-27 17:44:41 -06:00
parent f7a55af513
commit 99cdf3e4dd
1 changed files with 7 additions and 0 deletions

View File

@ -9,3 +9,10 @@ TEST(common, StripFilename) {
ASSERT_EQ(std::string("/home/foo"), std::string(test));
}
TEST(common, StripFilenameFileOnly) {
char test[] = "bar.txt";
StripFilename(test);
ASSERT_EQ(std::string(""), std::string(test));
}