summaryrefslogtreecommitdiff
path: root/test/lib/testassert.h
diff options
context:
space:
mode:
authorJames Shaw <jshaw@netsurf-browser.org>2007-09-22 23:08:54 +0000
committerJames Shaw <jshaw@netsurf-browser.org>2007-09-22 23:08:54 +0000
commit6b9b7ec69002e062bb48049acdab7e1e7145b0ca (patch)
treec746866823441f341bc873bcb951f67392f549e1 /test/lib/testassert.h
parentb41f9b430878ea33ba8da7b30bfb6a81a4dd0317 (diff)
downloadlibdom-6b9b7ec69002e062bb48049acdab7e1e7145b0ca.tar.gz
libdom-6b9b7ec69002e062bb48049acdab7e1e7145b0ca.tar.bz2
Extend list implementation, add test-list.c to test some of it.
svn path=/trunk/dom/; revision=3573
Diffstat (limited to 'test/lib/testassert.h')
-rw-r--r--test/lib/testassert.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lib/testassert.h b/test/lib/testassert.h
index 329feff..8556075 100644
--- a/test/lib/testassert.h
+++ b/test/lib/testassert.h
@@ -8,6 +8,9 @@
#ifndef testassert_h_
#define testassert_h_
+#include "comparators.h"
+#include "list.h"
+
/* Redefine assert, so we can simply use the standard assert mechanism
* within testcases and exit with the right output for the testrunner
* to do the right thing. */
@@ -17,6 +20,11 @@ void __assert2(const char *expr, const char *function,
#define assert(expr) \
((void) ((expr) || (__assert2 (#expr, __func__, __FILE__, __LINE__), 0)))
+void assert_equals_collection(struct list* expected, struct list* actual,
+ comparator comparator);
+void assert_equals(int expected, int actual, comparator comparator);
+void assert_not_null(void* x);
+
#endif