1
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).
6
7 #include <boost/vmd/equal.hpp>
8 #include <boost/vmd/not_equal.hpp>
9 #include <boost/detail/lightweight_test.hpp>
10
main()11 int main()
12 {
13
14 #if BOOST_PP_VARIADICS
15
16 #define BOOST_VMD_REGISTER_ggh (ggh)
17 #define BOOST_VMD_DETECT_ggh_ggh
18 #define BOOST_VMD_REGISTER_dvd (dvd)
19 #define BOOST_VMD_DETECT_dvd_dvd
20
21 #define ANIDENTIFIER ggh
22 #define ANUMBER 249
23 #define ANUMBER2 17
24 #define ASEQ (25)(26)(27)
25 #define ASEQ2 (1)(2)(3)
26 #define ATUPLE (0,(ggh,45,(2,(89,(dvd)(57)(99)))),170)
27 #define ALIST (0,(1,(2,(3,BOOST_PP_NIL))))
28 #define ALIST2 (0,(1,(2,(4,BOOST_PP_NIL))))
29 #define ANARRAY (3,(ggh,dvd,38))
30 #define ANARRAY2 (3,(dvd,ggh,38))
31 #define ASEQUENCE4
32
33 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ASEQ,249));
34 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ALIST,17));
35 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANIDENTIFIER,ANARRAY));
36 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANUMBER2,dvd));
37 BOOST_TEST(BOOST_VMD_EQUAL(ASEQUENCE4,));
38 BOOST_TEST(BOOST_VMD_EQUAL(,));
39 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANARRAY2,ASEQ2));
40 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ASEQ,22));
41 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ATUPLE,ANARRAY));
42 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ALIST2,ANUMBER2));
43 BOOST_TEST(BOOST_VMD_NOT_EQUAL(ANARRAY,ASEQUENCE4));
44
45 #else
46
47 BOOST_ERROR("No variadic macro support");
48
49 #endif
50
51 return boost::report_errors();
52
53 }
54