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

#include "logic.h"

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