diff options
-rw-r--r-- | logic.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -97,6 +97,12 @@ logic_test_nor() { assert(LOGIC_LOW == logic_nor(LOGIC_HIGH, LOGIC_HIGH)); } +void +logic_test_not() { + emit_info("Testing NOT\n"); + assert(LOGIC_HIGH == logic_not(LOGIC_LOW )); + assert(LOGIC_LOW == logic_not(LOGIC_HIGH)); +} void logic_test() { @@ -105,4 +111,5 @@ logic_test() { logic_test_nand(); logic_test_nor(); logic_test_xor(); + logic_test_not(); } |