Commit a6eddb6f authored by Bart van der Velden's avatar Bart van der Velden

Add another unit test (#53)

parent 83e5a246
......@@ -28,6 +28,16 @@ TEST(UtilsTest, PrepareLongFileName1)
#endif
}
TEST(UtilsTest, PrepareLongFileNameNonAnsiCharacters)
{
string res = PrepareLongFileName("c:\\autoexec_テスト.bat");
#if defined(_WIN32)
EXPECT_STREQ("\\\\?\\c:\\autoexec.bat", res.c_str());
#else
EXPECT_STREQ("c:\\autoexec_テスト.bat", res.c_str());
#endif
}
// Tests with the second parameter 0
TEST(UtilsTest, FormatSizeSecondParameterZero)
{
......
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