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

#include "logic.h"

int main(void) {
	assert(LOGIC_HIGH == logic_or(LOGIC_HIGH, LOGIC_HIGH));
	assert(LOGIC_HIGH == logic_or(LOGIC_HIGH, LOGIC_LOW ));
	assert(LOGIC_HIGH == logic_or(LOGIC_LOW , LOGIC_HIGH));
	assert(LOGIC_LOW  == logic_or(LOGIC_LOW , LOGIC_LOW ));
}