diff options
author | Alexander Kojevnikov <alexander@kojevnikov.com> | 2013-03-26 09:48:53 -0700 |
---|---|---|
committer | Alexander Kojevnikov <alexander@kojevnikov.com> | 2013-03-26 09:48:53 -0700 |
commit | 7627ecbb7a2d16fba7b51e72e397f5c86755eb3a (patch) | |
tree | b06789d4189c00ab395092fc5d1f1756b20e4530 | |
parent | 87360354c4b7cc231b69e38cba38e7798895e940 (diff) | |
download | spek-7627ecbb7a2d16fba7b51e72e397f5c86755eb3a.zip spek-7627ecbb7a2d16fba7b51e72e397f5c86755eb3a.tar.gz spek-7627ecbb7a2d16fba7b51e72e397f5c86755eb3a.tar.bz2 |
tests: Demux/decode .ogg
-rw-r--r-- | tests/samples/2ch-44100Hz-q5.ogg | bin | 0 -> 6425 bytes | |||
-rw-r--r-- | tests/test-audio-info.cc | 1 | ||||
-rw-r--r-- | tests/test-audio-read.cc | 1 | ||||
-rw-r--r-- | tests/test.cc | 3 |
4 files changed, 3 insertions, 2 deletions
diff --git a/tests/samples/2ch-44100Hz-q5.ogg b/tests/samples/2ch-44100Hz-q5.ogg Binary files differnew file mode 100644 index 0000000..c703e25 --- /dev/null +++ b/tests/samples/2ch-44100Hz-q5.ogg diff --git a/tests/test-audio-info.cc b/tests/test-audio-info.cc index 240315d..aa55852 100644 --- a/tests/test-audio-info.cc +++ b/tests/test-audio-info.cc @@ -63,6 +63,7 @@ void test_audio_info() {"2ch-44100Hz-320cbr.mp3", {"MP3", 320000, 44100, 0, 2, MP3_T}}, {"2ch-44100Hz-V0.mp3", {"MP3", 201329, 44100, 0, 2, MP3_T}}, {"2ch-44100Hz-V2.mp3", {"MP3", 150124, 44100, 0, 2, MP3_T}}, + {"2ch-44100Hz-q5.ogg", {"Vorbis", 160000, 44100, 0, 2, 0.1}}, }; for (const auto& item : files) { run( diff --git a/tests/test-audio-read.cc b/tests/test-audio-read.cc index 58d24ca..503515c 100644 --- a/tests/test-audio-read.cc +++ b/tests/test-audio-read.cc @@ -58,6 +58,7 @@ void test_audio_read() {"2ch-44100Hz-320cbr.mp3", 2 * 1152 * 4 + 94}, {"2ch-44100Hz-V0.mp3", 2 * 1152 * 4 + 94}, {"2ch-44100Hz-V2.mp3", 2 * 1152 * 4 + 94}, + {"2ch-44100Hz-q5.ogg", 2 * 1024 * 4 + 1152}, }; for (const auto& item : files) { run( diff --git a/tests/test.cc b/tests/test.cc index e755b49..296e542 100644 --- a/tests/test.cc +++ b/tests/test.cc @@ -34,8 +34,7 @@ int main() std::cerr << " tests failed" << "\x1b[0m" << std::endl; return -1; } else { - std::cerr << "\x1b[32;1m" << g_passes << "/" << g_total; - std::cerr << " tests passed" << "\x1b[0m" << std::endl; + std::cerr << "\x1b[32;1m" << g_total << " tests passed" << "\x1b[0m" << std::endl; return 0; } } |