]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/hana/test/ext/std/ratio/to.cpp
1 // Copyright Louis Dionne 2013-2016
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/core/to.hpp>
7 #include <boost/hana/equal.hpp>
8 #include <boost/hana/ext/std/ratio.hpp>
10 #include <laws/base.hpp>
11 #include <support/cnumeric.hpp>
15 namespace hana
= boost::hana
;
19 // Conversion from a Constant to a std::ratio
21 BOOST_HANA_CONSTANT_CHECK(hana::equal(
22 hana::to
<hana::ext::std::ratio_tag
>(cnumeric
<int, 0>),
26 BOOST_HANA_CONSTANT_CHECK(hana::equal(
27 hana::to
<hana::ext::std::ratio_tag
>(cnumeric
<int, 1>),
31 BOOST_HANA_CONSTANT_CHECK(hana::equal(
32 hana::to
<hana::ext::std::ratio_tag
>(cnumeric
<int, 3>),