Commit a8712063 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

tests: Add a path -> mrl test

parent 89d87acf
......@@ -129,6 +129,17 @@ TEST( FsUtils, toLocalPath )
#endif
}
TEST( FsUtils, toMrl )
{
#ifndef _WIN32
ASSERT_EQ( "/yea /sp ace", utils::file::toLocalPath( "file:///yea%20/sp%20ace" ) );
ASSERT_EQ( "/c/foo/bar.mkv", utils::file::toLocalPath( "file:///c/foo/bar.mkv" ) );
#else
ASSERT_EQ( "c\\foo\\bar.mkv", utils::file::toLocalPath( "file:///c/foo/bar.mkv" ) );
ASSERT_EQ( "x\\yea \\sp ace", utils::file::toLocalPath( "file:///x/yea%20/sp%20ace" ) );
#endif
}
TEST( FsUtils, stripScheme )
{
ASSERT_EQ( "space%20marine", utils::file::stripScheme( "sc2://space%20marine" ) );
......
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