From 7823d9c7e4f3c0485e8d96e44e0d94541762c6d1 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Thu, 28 Dec 2017 19:58:57 +1300 Subject: Move logic tests to test framework --- test/test-logic-and.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/test-logic-and.c (limited to 'test/test-logic-and.c') diff --git a/test/test-logic-and.c b/test/test-logic-and.c new file mode 100644 index 0000000..ce44ee8 --- /dev/null +++ b/test/test-logic-and.c @@ -0,0 +1,10 @@ +#include + +#include "logic.h" + +int main(void) { + assert(LOGIC_HIGH == logic_and(LOGIC_HIGH, LOGIC_HIGH)); + assert(LOGIC_LOW == logic_and(LOGIC_HIGH, LOGIC_LOW )); + assert(LOGIC_LOW == logic_and(LOGIC_LOW , LOGIC_HIGH)); + assert(LOGIC_LOW == logic_and(LOGIC_LOW , LOGIC_LOW )); +} -- cgit v1.1