mirror of
https://github.com/OldUnreal/libxmp.git
synced 2026-04-02 21:37:43 -07:00
17 lines
295 B
C
17 lines
295 B
C
#include "test.h"
|
|
|
|
TEST(test_api_create_context)
|
|
{
|
|
xmp_context ctx;
|
|
int state;
|
|
|
|
ctx = xmp_create_context();
|
|
fail_unless(ctx != 0, "returned NULL");
|
|
|
|
state = xmp_get_player(ctx, XMP_PLAYER_STATE);
|
|
fail_unless(state == XMP_STATE_UNLOADED, "state error");
|
|
|
|
xmp_free_context(ctx);
|
|
}
|
|
END_TEST
|