diff options
Diffstat (limited to 'test/test-logic-or.c')
-rw-r--r-- | test/test-logic-or.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-logic-or.c b/test/test-logic-or.c new file mode 100644 index 0000000..7af3cbd --- /dev/null +++ b/test/test-logic-or.c @@ -0,0 +1,10 @@ +#include <assert.h> + +#include "logic.h" + +int main(void) { + assert(LOGIC_HIGH == logic_or(LOGIC_HIGH, LOGIC_HIGH)); + assert(LOGIC_HIGH == logic_or(LOGIC_HIGH, LOGIC_LOW )); + assert(LOGIC_HIGH == logic_or(LOGIC_LOW , LOGIC_HIGH)); + assert(LOGIC_LOW == logic_or(LOGIC_LOW , LOGIC_LOW )); +} |