test: add mad test

This commit is contained in:
alexey.lysiuk 2023-04-13 17:22:54 +03:00
parent 42365926af
commit 09edd9893a
1 changed files with 14 additions and 0 deletions

14
test/mad.cpp Normal file
View File

@ -0,0 +1,14 @@
#include <mad.h>
int main()
{
AEDI_EXPECT(mad_version[0] != '\0');
AEDI_EXPECT(mad_build[0] != '\0');
mad_stream stream = {};
mad_stream_init(&stream);
AEDI_EXPECT(stream.error == MAD_ERROR_NONE);
mad_stream_finish(&stream);
return 0;
}