ocarina/tests/core/containers/queue.c

21 lines
386 B
C

/*
* Copyright 2015 (c) Anna Schumaker.
*/
#include <core/containers/queue.h>
#include <tests/test.h>
static void test_init()
{
struct _queue queue = _Q_INIT();
/* _q_init() */
test_equal((void *)queue._queue.head, NULL);
test_equal((void *)queue._queue.tail, NULL);
test_equal(queue._queue.length, 0);
}
DECLARE_UNIT_TESTS(
UNIT_TEST("Queue Initialization", test_init),
);