test_assert_fail_is_number.cxx 635 B

12345678910111213141516171819202122232425
  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/assert.hpp>
  6. #include <boost/vmd/is_number.hpp>
  7. #include <boost/detail/lightweight_test.hpp>
  8. #include <boost/preprocessor/list/at.hpp>
  9. int main()
  10. {
  11. #if BOOST_PP_VARIADICS
  12. #define A_LIST (eeb,(grist,(152,BOOST_PP_NIL)))
  13. BOOST_VMD_ASSERT(BOOST_VMD_IS_NUMBER(BOOST_PP_LIST_AT(A_LIST,1)),BOOST_VMD_TEST_FAIL_IS_NUMBER)
  14. #endif
  15. return boost::report_errors();
  16. }