diff options
Diffstat (limited to 'test/testutils/domtscondition.h')
-rw-r--r-- | test/testutils/domtscondition.h | 27 |
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 |