Files
boost_preprocessor/test/logical_test.cpp
2002-06-16 09:11:48 +00:00

41 lines
1.1 KiB
C++

/* Copyright (C) 2001
* Housemarque Oy
* http://www.housemarque.com
*
* Permission to copy, use, modify, sell and distribute this software is
* granted provided this copyright notice appears in all copies. This
* software is provided "as is" without express or implied warranty, and
* with no claim as to its suitability for any purpose.
*
* See http://www.boost.org for most recent version.
*/
#include <boost/preprocessor/logical.hpp>
#include <libs/preprocessor/test/test.hpp>
/* *** */
TEST_B BOOST_PP_NOT(0) == 1 TEST_E
TEST_B BOOST_PP_NOT(2) == 0 TEST_E
TEST_B BOOST_PP_AND(0,0) == 0 TEST_E
TEST_B BOOST_PP_AND(0,3) == 0 TEST_E
TEST_B BOOST_PP_AND(4,0) == 0 TEST_E
TEST_B BOOST_PP_AND(5,6) == 1 TEST_E
TEST_B BOOST_PP_OR(0,0) == 0 TEST_E
TEST_B BOOST_PP_OR(0,7) == 1 TEST_E
TEST_B BOOST_PP_OR(8,0) == 1 TEST_E
TEST_B BOOST_PP_OR(9,1) == 1 TEST_E
TEST_B BOOST_PP_XOR(0,0) == 0 TEST_E
TEST_B BOOST_PP_XOR(0,2) == 1 TEST_E
TEST_B BOOST_PP_XOR(3,0) == 1 TEST_E
TEST_B BOOST_PP_XOR(4,5) == 0 TEST_E
TEST_B BOOST_PP_NOR(0,0) == 1 TEST_E
TEST_B BOOST_PP_NOR(0,6) == 0 TEST_E
TEST_B BOOST_PP_NOR(7,0) == 0 TEST_E
TEST_B BOOST_PP_NOR(8,9) == 0 TEST_E