test_number_equal.cxx 903 B

1234567891011121314151617181920212223242526272829303132333435
  1. // (C) Copyright Edward Diener 2011-2015
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. #include <boost/vmd/equal.hpp>
  6. #include <boost/vmd/not_equal.hpp>
  7. #include <boost/detail/lightweight_test.hpp>
  8. int main()
  9. {
  10. #if BOOST_PP_VARIADICS
  11. #define ANUMBER 249
  12. #define ANUMBER2 17
  13. #define ANUMBER3 249
  14. #define ASEQ (22)(33)
  15. #define ASEQ2 (22)(33)
  16. BOOST_TEST(BOOST_VMD_EQUAL(ANUMBER,ANUMBER3,BOOST_VMD_TYPE_NUMBER));
  17. BOOST_TEST(BOOST_VMD_EQUAL(ANUMBER,ANUMBER3,BOOST_VMD_TYPE_IDENTIFIER));
  18. BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANUMBER,NUMBER2,BOOST_VMD_TYPE_NUMBER));
  19. BOOST_TEST(BOOST_VMD_NOT_EQUAL(ASEQ,ASEQ2,BOOST_VMD_TYPE_NUMBER));
  20. #else
  21. BOOST_ERROR("No variadic macro support");
  22. #endif
  23. return boost::report_errors();
  24. }