Missing file

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1148734 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský 2010-07-11 17:45:47 +00:00
parent 3cca3f17c5
commit 5aed3681fb
2 changed files with 29 additions and 1 deletions

View File

@ -41,7 +41,7 @@ SET(test_runner_SRCS
test_flac.cpp
test_ape.cpp
test_apetag.cpp
#test_wav.cpp
test_wav.cpp
)
IF(WITH_MP4)
SET(test_runner_SRCS ${test_runner_SRCS}

28
tests/test_wav.cpp Normal file
View File

@ -0,0 +1,28 @@
#include <cppunit/extensions/HelperMacros.h>
#include <string>
#include <stdio.h>
#include <tag.h>
#include <tbytevectorlist.h>
#include <wavfile.h>
#include "utils.h"
using namespace std;
using namespace TagLib;
class TestWAV : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(TestWAV);
CPPUNIT_TEST(testLength);
CPPUNIT_TEST_SUITE_END();
public:
void testLength()
{
RIFF::WAV::File f("data/empty.wav");
CPPUNIT_ASSERT_EQUAL(3, f.audioProperties()->length());
}
};
CPPUNIT_TEST_SUITE_REGISTRATION(TestWAV);