2 // (C) Copyright Edward Diener 2011-2015
3 // Use, modification and distribution are subject to the Boost Software License,
4 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt).
7 #include <boost/vmd/assert_is_seq.hpp>
8 #include <boost/preprocessor/tuple/elem.hpp>
9 #include <boost/detail/lightweight_test.hpp>
14 #if BOOST_PP_VARIADICS
16 #define ATUPLE (0,1,2,3,((VMD_TEST_88_,VMD_TEST_1_))((VMD_TEST_99_,VMD_TEST_3_))((VMD_TEST_2_))((VMD_TEST_99_,VMD_TEST_100_,VMD_TEST_101_)))
18 #if !BOOST_VMD_MSVC_V8
20 #define AN_EMPTY_SEQ ()
24 BOOST_VMD_ASSERT_IS_SEQ((x))
25 BOOST_VMD_ASSERT_IS_SEQ((x)(y))
26 BOOST_VMD_ASSERT_IS_SEQ((x)(y)(z)(2)(3)(4))
27 BOOST_VMD_ASSERT_IS_SEQ((x)(y)(z)((1,2))(3)(4))
28 BOOST_VMD_ASSERT_IS_SEQ((x)(y)(z)((1,2))(3)((4,(x,BOOST_PP_NIL))))
29 BOOST_VMD_ASSERT_IS_SEQ((x)(y)((x)(y)(z)(2)(3)(4))((1,2))(3)((4,(x,BOOST_PP_NIL))))
30 BOOST_VMD_ASSERT_IS_SEQ(BOOST_PP_TUPLE_ELEM(4,ATUPLE))
32 #if !BOOST_VMD_MSVC_V8
34 BOOST_VMD_ASSERT_IS_SEQ(())
35 BOOST_VMD_ASSERT_IS_SEQ(AN_EMPTY_SEQ)
45 return boost::report_errors();