diff options
author | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2010-12-04 23:12:24 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@netsurf-browser.org> | 2010-12-04 23:12:24 +0000 |
commit | d3e20391aac5f121b577cfb897c14c70d54eeee7 (patch) | |
tree | 20fde4d3d12c66ee9520cdb2f7ed6a76fb1ca48f /test/testutils/comparators.c | |
parent | 236b28d43874cd7cc4288f43a73292bf2755a3af (diff) | |
download | libdom-d3e20391aac5f121b577cfb897c14c70d54eeee7.tar.gz libdom-d3e20391aac5f121b577cfb897c14c70d54eeee7.tar.bz2 |
Make libdom work again given lack of init/finalise in hubbub and prepare initial attempt at importing tests into the makefile
svn path=/trunk/dom/; revision=10992
Diffstat (limited to 'test/testutils/comparators.c')
-rw-r--r-- | test/testutils/comparators.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testutils/comparators.c b/test/testutils/comparators.c index 20630c6..b7ec1b1 100644 --- a/test/testutils/comparators.c +++ b/test/testutils/comparators.c @@ -21,13 +21,13 @@ int int_comparator(const void* a, const void* b) { * one is a dom_string, return zero if equal */ int str_cmp(const void *a, const void *b) { - const char *excepted = (const char *) a; + const uint8_t *expected = (const uint8_t *) a; dom_string *actual = (dom_string *) b; dom_string *exp; dom_exception err; bool ret; - err = dom_string_create(myrealloc, NULL, excepted, strlen(excepted), + err = dom_string_create(myrealloc, NULL, expected, strlen((const char *)expected), &exp); if (err != DOM_NO_ERR) return false; @@ -52,13 +52,13 @@ int str_cmp_r(const void *a, const void *b) /* Similar with str_cmp but ignore the case of letters */ int str_icmp(const void *a, const void *b) { - const char *excepted = (const char *) a; + const uint8_t *expected = (const uint8_t *) a; dom_string *actual = (dom_string *) b; dom_string *exp; dom_exception err; bool ret; - err = dom_string_create(myrealloc, NULL, excepted, strlen(excepted), + err = dom_string_create(myrealloc, NULL, expected, strlen((const char *)expected), &exp); if (err != DOM_NO_ERR) return false; |