Files
libxmp/test-dev/test_loader_mmd1_longpat.c
AliceLR df9a1e9d43 Add misc. loader tests for previous pull requests.
Adds tests for:
* Fix S3M ADPCM4 samples. (#163, f11ebc67)
* Fix OctaMED 'tracker compatibility' tempos. (#177, 29b5d06f)
* Fix MEDs with pattern lengths >256, MED instrument corruption. (#185, a07c760a)
* Fix Schism Tracker version date calculation. (#190, 7e20a828)

Also reformats the test-dev Makefile.in loader tests list, which
was starting to get messy.
2020-11-26 13:19:19 -07:00

25 lines
504 B
C

#include "test.h"
TEST(test_loader_mmd1_longpat)
{
xmp_context opaque;
struct xmp_module_info info;
FILE *f;
int ret;
f = fopen("data/format_mmd1_longpat.data", "r");
opaque = xmp_create_context();
ret = xmp_load_module(opaque, "data/m/new dimension.med");
fail_unless(ret == 0, "module load");
xmp_get_module_info(opaque, &info);
ret = compare_module(info.mod, f);
fail_unless(ret == 0, "format not correctly loaded");
xmp_release_module(opaque);
xmp_free_context(opaque);
}
END_TEST