diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-12-21 22:18:10 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-12-21 22:18:10 +0000 |
commit | 83f3338663c4969eebefd8c2c43bd3fc43587fdd (patch) | |
tree | e48ba69628c5ba793533094e308c1fce9acb21aa /test/testutils/comparators.c | |
parent | 4ade8ad1c7b23e6eeeee6681acbdb43fb10cab43 (diff) | |
download | libdom-83f3338663c4969eebefd8c2c43bd3fc43587fdd.tar.gz libdom-83f3338663c4969eebefd8c2c43bd3fc43587fdd.tar.bz2 |
Merge branches/jmb/dom-alloc-purge back to trunk
svn path=/trunk/libdom/; revision=13316
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 b7ec1b1..ee8b227 100644 --- a/test/testutils/comparators.c +++ b/test/testutils/comparators.c @@ -27,12 +27,12 @@ int str_cmp(const void *a, const void *b) dom_exception err; bool ret; - err = dom_string_create(myrealloc, NULL, expected, strlen((const char *)expected), + err = dom_string_create(expected, strlen((const char *)expected), &exp); if (err != DOM_NO_ERR) return false; - ret = dom_string_cmp(exp, actual) == 0; + ret = dom_string_isequal(exp, actual); dom_string_unref(exp); @@ -58,12 +58,12 @@ int str_icmp(const void *a, const void *b) dom_exception err; bool ret; - err = dom_string_create(myrealloc, NULL, expected, strlen((const char *)expected), + err = dom_string_create(expected, strlen((const char *)expected), &exp); if (err != DOM_NO_ERR) return false; - ret = dom_string_icmp(exp, actual) == 0; + ret = dom_string_caseless_isequal(exp, actual); dom_string_unref(exp); |