Bitwise operator using only ternary operator

Bitwise operators(and and or) using only ternary operator and testing truth values also using unit testing