mirror of
https://github.com/boostorg/preprocessor.git
synced 2025-07-13 04:26:52 +02:00
Split unit test for more fine grained test results
[SVN r12159]
This commit is contained in:
34
test/logical_test.cpp
Normal file
34
test/logical_test.cpp
Normal file
@ -0,0 +1,34 @@
|
||||
// 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(BOOST_PP_NOT(0) == 1)
|
||||
TEST(BOOST_PP_NOT(1) == 0)
|
||||
|
||||
TEST(BOOST_PP_AND(0,0) == 0)
|
||||
TEST(BOOST_PP_AND(0,1) == 0)
|
||||
TEST(BOOST_PP_AND(1,0) == 0)
|
||||
TEST(BOOST_PP_AND(1,1) == 1)
|
||||
|
||||
TEST(BOOST_PP_OR(0,0) == 0)
|
||||
TEST(BOOST_PP_OR(0,1) == 1)
|
||||
TEST(BOOST_PP_OR(1,0) == 1)
|
||||
TEST(BOOST_PP_OR(1,1) == 1)
|
||||
|
||||
TEST(BOOST_PP_XOR(0,0) == 0)
|
||||
TEST(BOOST_PP_XOR(0,1) == 1)
|
||||
TEST(BOOST_PP_XOR(1,0) == 1)
|
||||
TEST(BOOST_PP_XOR(1,1) == 0)
|
Reference in New Issue
Block a user