kolibrios/programs/network/netsurf/libhubbub/test/entities.c
Dmitry Pereverzev (SoUrcerer) 370da47fa0 Netsurf initial port (still needs native ui and cURL)
git-svn-id: svn://kolibrios.org@3584 a494cfbc-eb01-0410-851d-a64ba20cac60
2013-06-01 17:14:14 +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;
}