mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Added some test cases for FileRef about unsupported files
This commit is contained in:
parent
7e866e11ad
commit
a845f70c49
BIN
tests/data/no-extension
Normal file
BIN
tests/data/no-extension
Normal file
Binary file not shown.
BIN
tests/data/unsupported-extension.xxx
Normal file
BIN
tests/data/unsupported-extension.xxx
Normal file
Binary file not shown.
@ -27,6 +27,7 @@ class TestFileRef : public CppUnit::TestFixture
|
||||
CPPUNIT_TEST(testTrueAudio);
|
||||
CPPUNIT_TEST(testAPE);
|
||||
CPPUNIT_TEST(testWav);
|
||||
CPPUNIT_TEST(testUnsupported);
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
|
||||
public:
|
||||
@ -148,6 +149,15 @@ public:
|
||||
{
|
||||
fileRefSave("mac-399", ".ape");
|
||||
}
|
||||
|
||||
void testUnsupported()
|
||||
{
|
||||
FileRef f1(TEST_FILE_PATH_C("no-extension"));
|
||||
CPPUNIT_ASSERT(f1.isNull());
|
||||
|
||||
FileRef f2(TEST_FILE_PATH_C("unsupported-extension.xxx"));
|
||||
CPPUNIT_ASSERT(f2.isNull());
|
||||
}
|
||||
};
|
||||
|
||||
CPPUNIT_TEST_SUITE_REGISTRATION(TestFileRef);
|
||||
|
Loading…
Reference in New Issue
Block a user