shithub: mp3dec

Download patch

ref: 4ba08c0199f2c2b016ca9d3ac0c799e3ed6836bd
parent: fa0f80b703643b202ff5f0952b3a2cdc226317f1
author: lieff <[email protected]>
date: Sat Feb 22 18:34:58 EST 2020

test: improve coverage

--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -54,6 +54,9 @@
 
 [[ "$(./minimp3 vectors/l3-nonstandard-id3v2-only.bit vectors/l3-nonstandard-id3v2-only.pcm)" != "rate=0 samples=0 max_diff=0 PSNR=99.000000" ]] && echo fail && exit 1 || echo pass
 [[ "$(./minimp3 -m 3 vectors/l3-nonstandard-id3v2-only.bit vectors/l3-nonstandard-id3v2-only.pcm)" != "rate=0 samples=0 max_diff=0 PSNR=99.000000" ]] && echo fail && exit 1 || echo pass
+
+[[ "$(./minimp3 -m 2 vectors/l3-nonstandard-small.bit vectors/l3-nonstandard-small.pcm)" != "rate=0 samples=0 max_diff=0 PSNR=99.000000" ]] && echo fail && exit 1 || echo pass
+[[ "$(./minimp3 -m 5 vectors/l3-nonstandard-small.bit vectors/l3-nonstandard-small.pcm)" != "rate=0 samples=0 max_diff=0 PSNR=99.000000" ]] && echo fail && exit 1 || echo pass
 set -e
 gcov minimp3_test.c
 
--- /dev/null
+++ b/vectors/l3-nonstandard-small.bit
@@ -1,0 +1,1 @@
+small
\ No newline at end of file