mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 06:31:37 +00:00
test: add mad test
This commit is contained in:
parent
42365926af
commit
09edd9893a
1 changed files with 14 additions and 0 deletions
14
test/mad.cpp
Normal file
14
test/mad.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue