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

Add unit test with filename with ASCII characters (#65)

parent afdb3751
......@@ -42,6 +42,15 @@ TEST(FileTypeResolverTest, FileDoesNotExistMp3Ext)
ASSERT_FALSE(file->isOpen());
}
TEST(FileTypeResolverTest, OggFileExists)
{
FileTypeResolver ftr;
File* file = ftr.createFile(QFile::encodeName(datapath("test.ogg")).constData());
ASSERT_TRUE(file != 0);
ASSERT_TRUE(dynamic_cast<Ogg::Vorbis::File*>(file) != 0);
ASSERT_TRUE(file->isOpen());
}
TEST(FileTypeResolverTest, JapaneseOggFile)
{
FileTypeResolver ftr;
......
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