diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-06-16 05:37:06 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-06-16 05:37:06 +0000 |
commit | 32386253b3e285406fc5bc5cbd2567b14a18524f (patch) | |
tree | 23824c752b7dd5e60e7a88042b21e2b5e70e5d38 /test/entities.c | |
parent | dfdc3e098d65ebcd7bc0c247d179201f81132ccb (diff) | |
download | libhubbub-32386253b3e285406fc5bc5cbd2567b14a18524f.tar.gz libhubbub-32386253b3e285406fc5bc5cbd2567b14a18524f.tar.bz2 |
Update the testsuite to match the tokeniser. Also, import new html5lib tests for better coverage. Known issue: the tokeniser test stalls using the testrunner script.
svn path=/trunk/hubbub/; revision=4356
Diffstat (limited to 'test/entities.c')
-rw-r--r-- | test/entities.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/entities.c b/test/entities.c index e99e6b0..0add0d7 100644 --- a/test/entities.c +++ b/test/entities.c @@ -19,16 +19,16 @@ int main(int argc, char **argv) assert(hubbub_entities_create(myrealloc, NULL) == HUBBUB_OK); - assert(hubbub_entities_search_step('o', &result, &context) == + assert(hubbub_entities_search_step('n', &result, &context) == HUBBUB_NEEDDATA); - assert(hubbub_entities_search_step('r', &result, &context) == - HUBBUB_OK); + assert(hubbub_entities_search_step('o', &result, &context) == + HUBBUB_NEEDDATA); - assert(hubbub_entities_search_step('d', &result, &context) == + assert(hubbub_entities_search_step('t', &result, &context) == HUBBUB_NEEDDATA); - assert(hubbub_entities_search_step('f', &result, &context) == + assert(hubbub_entities_search_step(';', &result, &context) == HUBBUB_OK); assert(hubbub_entities_search_step('z', &result, &context) == |