summaryrefslogtreecommitdiff
path: root/test/testutils/domtscondition.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 23:12:24 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2010-12-04 23:12:24 +0000
commit64e9feb8d0e62a4428d1db7a18cf00fdc2917252 (patch)
tree20fde4d3d12c66ee9520cdb2f7ed6a76fb1ca48f /test/testutils/domtscondition.h
parenta52bcd7b8a077fc39cc75b12a63e49397d5e891f (diff)
downloadlibdom-64e9feb8d0e62a4428d1db7a18cf00fdc2917252.tar.gz
libdom-64e9feb8d0e62a4428d1db7a18cf00fdc2917252.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/domtscondition.h')
-rw-r--r--test/testutils/domtscondition.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/test/testutils/domtscondition.h b/test/testutils/domtscondition.h
index 164977f..30da6cc 100644
--- a/test/testutils/domtscondition.h
+++ b/test/testutils/domtscondition.h
@@ -10,9 +10,28 @@
#include <stdbool.h>
-inline bool less(int excepted, int actual);
-inline bool less_or_equals(int excepted, int actual);
-inline bool greater(int excepted, int actual);
-inline bool greater_or_equals(int excepted, int actual);
+/**
+ * Just simple functions which meet the needs of DOMTS conditions
+ */
+
+static inline bool less(int excepted, int actual)
+{
+ return actual < excepted;
+}
+
+static inline bool less_or_equals(int excepted, int actual)
+{
+ return actual <= excepted;
+}
+
+static inline bool greater(int excepted, int actual)
+{
+ return actual > excepted;
+}
+
+static inline bool greater_or_equals(int excepted, int actual)
+{
+ return actual >= excepted;
+}
#endif