kolibrios/contrib/network/netsurf/libhubbub/test/entities.c
Yogev Ezra bb2bbc6b91 Move NetSurf to /contrib folder
git-svn-id: svn://kolibrios.org@4364 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-12-15 14:01:21 +00:00

38 lines
779 B
C

#include "tokeniser/entities.h"
#include "testutils.h"
int main(int argc, char **argv)
{
uint32_t result;
int32_t context = -1;
UNUSED(argc);
UNUSED(argv);
assert(hubbub_entities_search_step('A', &result, &context) ==
HUBBUB_NEEDDATA);
assert(hubbub_entities_search_step('E', &result, &context) ==
HUBBUB_NEEDDATA);
assert(hubbub_entities_search_step('l', &result, &context) ==
HUBBUB_NEEDDATA);
assert(hubbub_entities_search_step('i', &result, &context) ==
HUBBUB_NEEDDATA);
assert(hubbub_entities_search_step('g', &result, &context) ==
HUBBUB_OK);
assert(hubbub_entities_search_step(';', &result, &context) ==
HUBBUB_OK);
assert(hubbub_entities_search_step('z', &result, &context) ==
HUBBUB_INVALID);
printf("PASS\n");
return 0;
}