1 2 3 4 5 6 7 8
#include <assert.h> #include "logic.h" int main(void) { assert(LOGIC_HIGH == logic_not(LOGIC_LOW )); assert(LOGIC_LOW == logic_not(LOGIC_HIGH)); }