]> granicus.if.org Git - taglib/commitdiff
Add some missing FileRef tests.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 6 Feb 2016 12:56:51 +0000 (21:56 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 6 Feb 2016 12:56:51 +0000 (21:56 +0900)
tests/test_fileref.cpp

index 2313eb59113e755ce4fa8b4109f6a3742721d999..2d77682a33fa50df4c62f49ce3fb6750be25b83a 100644 (file)
@@ -38,6 +38,7 @@
 #include <mp4file.h>
 #include <wavfile.h>
 #include <apefile.h>
+#include <aifffile.h>
 #include <cppunit/extensions/HelperMacros.h>
 #include "utils.h"
 #include <tfilestream.h>
@@ -75,6 +76,8 @@ class TestFileRef : public CppUnit::TestFixture
   CPPUNIT_TEST(testTrueAudio);
   CPPUNIT_TEST(testAPE);
   CPPUNIT_TEST(testWav);
+  CPPUNIT_TEST(testAIFF_1);
+  CPPUNIT_TEST(testAIFF_2);
   CPPUNIT_TEST(testUnsupported);
   CPPUNIT_TEST(testFileResolver);
   CPPUNIT_TEST_SUITE_END();
@@ -215,6 +218,16 @@ public:
     fileRefSave<APE::File>("mac-399", ".ape");
   }
 
+  void testAIFF_1()
+  {
+    fileRefSave<RIFF::AIFF::File>("empty", ".aiff");
+  }
+
+  void testAIFF_2()
+  {
+    fileRefSave<RIFF::AIFF::File>("alaw", ".aifc");
+  }
+
   void testUnsupported()
   {
     FileRef f1(TEST_FILE_PATH_C("no-extension"));