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

Fix the tests (#65)

parent 36b2d83e
......@@ -45,7 +45,7 @@ TEST(FileTypeResolverTest, FileDoesNotExistMp3Ext)
TEST(FileTypeResolverTest, JapaneseOggFile)
{
FileTypeResolver ftr;
File* file = ftr.createFile(QFile::encodeName(datapath("data/testdata/テスト.ogg")).constData());
File* file = ftr.createFile(QFile::encodeName(datapath("テスト.ogg")).constData());
ASSERT_TRUE(file != 0);
ASSERT_TRUE(dynamic_cast<Ogg::Vorbis::File*>(file) != 0);
ASSERT_TRUE(file->isOpen());
......@@ -54,7 +54,7 @@ TEST(FileTypeResolverTest, JapaneseOggFile)
TEST(FileTypeResolverTest, ArabicOggFile)
{
FileTypeResolver ftr;
File* file = ftr.createFile(QFile::encodeName(datapath("data/testdata/اختبار.ogg")).constData());
File* file = ftr.createFile(QFile::encodeName(datapath("اختبار.ogg")).constData());
ASSERT_TRUE(file != 0);
ASSERT_TRUE(dynamic_cast<Ogg::Vorbis::File*>(file) != 0);
ASSERT_TRUE(file->isOpen());
......@@ -63,7 +63,7 @@ TEST(FileTypeResolverTest, ArabicOggFile)
TEST(FileTypeResolverTest, RussianOggFile)
{
FileTypeResolver ftr;
File* file = ftr.createFile(QFile::encodeName(datapath("data/testdata/тест.ogg")).constData());
File* file = ftr.createFile(QFile::encodeName(datapath("тест.ogg")).constData());
ASSERT_TRUE(file != 0);
ASSERT_TRUE(dynamic_cast<Ogg::Vorbis::File*>(file) != 0);
ASSERT_TRUE(file->isOpen());
......
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