diff options
author | David Phillips <david@sighup.nz> | 2017-12-28 19:58:57 +1300 |
---|---|---|
committer | David Phillips <david@sighup.nz> | 2017-12-28 20:23:38 +1300 |
commit | 7823d9c7e4f3c0485e8d96e44e0d94541762c6d1 (patch) | |
tree | 38588863cbdfc5752bc9d6473f6809fc478bda97 /test/test-logic-or.c | |
parent | 12fc1ad7e759715a11776298f6da6d946d75bbd1 (diff) | |
download | hence-7823d9c7e4f3c0485e8d96e44e0d94541762c6d1.tar.xz |
Move logic tests to test framework
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 )); +} |