]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/histogram/test/detail_relaxed_equal_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / histogram / test / detail_relaxed_equal_test.cpp
1 // Copyright 2015-2017 Hans Dembinski
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 #include <boost/core/lightweight_test.hpp>
8 #include <boost/core/lightweight_test_trait.hpp>
9 #include <boost/histogram/detail/relaxed_equal.hpp>
10 #include "std_ostream.hpp"
11
12 using namespace boost::histogram::detail;
13
14 int main() {
15 struct A {};
16 A a, b;
17
18 struct B {
19 bool operator==(const B&) const { return false; }
20 };
21 B c, d;
22
23 BOOST_TEST(relaxed_equal(a, b));
24 BOOST_TEST_NOT(relaxed_equal(c, d));
25
26 return boost::report_errors();
27 }