summaryrefslogtreecommitdiff
path: root/test/test-logic-nand.c
blob: ce44ee8adcb62804d8abb13fad210ba7751b5fe8 (plain)
1
2
3
4
5
6
7
8
9
10
#include <assert.h>

#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 ));
}