server/src/util/functions.test.c
Enno Rehling 125fd519a8 rename test files.
add tests for keyword.c, incomplete.
2014-06-16 08:01:59 -07:00

23 lines
487 B
C

#include <CuTest.h>
#include <stdio.h>
#include <string.h>
#include "functions.h"
static void test_functions(CuTest * tc)
{
pf_generic fun;
fun = get_function("herpderp");
CuAssertTrue(tc, !fun);
register_function((pf_generic)test_functions, "herpderp");
fun = get_function("herpderp");
CuAssertTrue(tc, fun==(pf_generic)test_functions);
}
CuSuite *get_functions_suite(void)
{
CuSuite *suite = CuSuiteNew();
SUITE_ADD_TEST(suite, test_functions);
return suite;
}