]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/concept/struct/equal.cpp
1 // Copyright Louis Dionne 2013-2017
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
5 #include <boost/hana/assert.hpp>
6 #include <boost/hana/concept/struct.hpp>
7 #include <boost/hana/equal.hpp>
8 #include <boost/hana/not.hpp>
10 #include "minimal_struct.hpp"
11 #include <laws/base.hpp>
12 namespace hana
= boost::hana
;
13 using hana::test::ct_eq
;
17 BOOST_HANA_CONSTANT_CHECK(hana::equal(
22 BOOST_HANA_CONSTANT_CHECK(hana::equal(
26 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::equal(
31 BOOST_HANA_CONSTANT_CHECK(hana::equal(
32 obj(ct_eq
<0>{}, ct_eq
<1>{}),
33 obj(ct_eq
<0>{}, ct_eq
<1>{})
35 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::equal(
36 obj(ct_eq
<1>{}, ct_eq
<0>{}),
37 obj(ct_eq
<0>{}, ct_eq
<1>{})
39 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::equal(
40 obj(ct_eq
<0>{}, ct_eq
<99>{}),
41 obj(ct_eq
<0>{}, ct_eq
<1>{})
43 BOOST_HANA_CONSTANT_CHECK(hana::not_(hana::equal(
44 obj(ct_eq
<99>{}, ct_eq
<1>{}),
45 obj(ct_eq
<0>{}, ct_eq
<1>{})