make.cpp 961 B

12345678910111213141516171819202122232425262728293031323334
  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)
  4. #include <boost/hana/assert.hpp>
  5. #include <boost/hana/equal.hpp>
  6. #include <boost/hana/set.hpp>
  7. #include <laws/base.hpp>
  8. namespace hana = boost::hana;
  9. using hana::test::ct_eq;
  10. int main() {
  11. BOOST_HANA_CONSTANT_CHECK(hana::equal(
  12. hana::make<hana::set_tag>(),
  13. hana::make_set()
  14. ));
  15. BOOST_HANA_CONSTANT_CHECK(hana::equal(
  16. hana::make<hana::set_tag>(ct_eq<0>{}),
  17. hana::make_set(ct_eq<0>{})
  18. ));
  19. BOOST_HANA_CONSTANT_CHECK(hana::equal(
  20. hana::make<hana::set_tag>(ct_eq<0>{}, ct_eq<1>{}),
  21. hana::make_set(ct_eq<0>{}, ct_eq<1>{})
  22. ));
  23. BOOST_HANA_CONSTANT_CHECK(hana::equal(
  24. hana::make<hana::set_tag>(ct_eq<0>{}, ct_eq<1>{}, ct_eq<2>{}),
  25. hana::make_set(ct_eq<0>{}, ct_eq<1>{}, ct_eq<2>{})
  26. ));
  27. }