libdom
Loading...
Searching...
No Matches
domtscondition.h
Go to the documentation of this file.
1/*
2 * This file is part of libdom test suite.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
6 */
7
8#ifndef domtscondition_h_
9#define domtscondition_h_
10
11#include <stdbool.h>
12
17static inline bool less(int excepted, int actual)
18{
19 return actual < excepted;
20}
21
22static inline bool less_or_equals(int excepted, int actual)
23{
24 return actual <= excepted;
25}
26
27static inline bool greater(int excepted, int actual)
28{
29 return actual > excepted;
30}
31
32static inline bool greater_or_equals(int excepted, int actual)
33{
34 return actual >= excepted;
35}
36
37#endif