2
0
mirror of https://github.com/boostorg/hana.git synced 2026-02-02 21:02:15 +00:00
Files
hana/test/bool/comparable.cpp
2014-09-01 18:14:55 -04:00

30 lines
704 B
C++

/*
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/bool/comparable.hpp>
#include <boost/hana/detail/assert.hpp>
#include <test/laws/comparable.hpp>
using namespace boost::hana;
int main() {
// equal
{
BOOST_HANA_CONSTANT_ASSERT(equal(true_, true_));
BOOST_HANA_CONSTANT_ASSERT(equal(false_, false_));
BOOST_HANA_CONSTANT_ASSERT(not_(equal(false_, true_)));
BOOST_HANA_CONSTANT_ASSERT(not_(equal(true_, false_)));
}
// laws
{
BOOST_HANA_CONSTANT_ASSERT(Comparable_laws(true_, false_));
}
}