summaryrefslogtreecommitdiff
path: root/test/test-logic-nor.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2017-12-28 19:58:57 +1300
committerDavid Phillips <david@sighup.nz>2017-12-28 20:23:38 +1300
commit7823d9c7e4f3c0485e8d96e44e0d94541762c6d1 (patch)
tree38588863cbdfc5752bc9d6473f6809fc478bda97 /test/test-logic-nor.c
parent12fc1ad7e759715a11776298f6da6d946d75bbd1 (diff)
downloadhence-7823d9c7e4f3c0485e8d96e44e0d94541762c6d1.tar.xz
Move logic tests to test framework
Diffstat (limited to 'test/test-logic-nor.c')
-rw-r--r--test/test-logic-nor.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test-logic-nor.c b/test/test-logic-nor.c
new file mode 100644
index 0000000..20ddcb7
--- /dev/null
+++ b/test/test-logic-nor.c
@@ -0,0 +1,10 @@
+#include <assert.h>
+
+#include "logic.h"
+
+int main(void) {
+ assert(LOGIC_LOW == logic_nor(LOGIC_HIGH, LOGIC_HIGH));
+ assert(LOGIC_LOW == logic_nor(LOGIC_HIGH, LOGIC_LOW ));
+ assert(LOGIC_LOW == logic_nor(LOGIC_LOW , LOGIC_HIGH));
+ assert(LOGIC_HIGH == logic_nor(LOGIC_LOW , LOGIC_LOW ));
+}