Commit f202d00c authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

tests: fs utils: Add a test case

parent 9d1f8e36
......@@ -68,6 +68,7 @@ TEST( FsUtils, removePath )
ASSERT_EQ( "bar", utils::file::removePath( "/f00/bar", "/f00" ) );
ASSERT_EQ( "bar", utils::file::removePath( "////f00/bar", "/f00" ) );
ASSERT_EQ( "bar", utils::file::removePath( "/f00///bar", "/f00" ) );
ASSERT_EQ( "bar", utils::file::removePath( "/f00///bar", "/f00/" ) );
ASSERT_EQ( "bar", utils::file::removePath( "bar", "" ) );
ASSERT_EQ( "", utils::file::removePath( "bar/", "bar" ) );
ASSERT_EQ( "", utils::file::removePath( "/f00/", "/f00/" ) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment