2
0
mirror of https://github.com/boostorg/hof.git synced 2026-02-01 08:32:12 +00:00
Files
hof/test/arg.cpp
2016-03-02 01:46:17 -06:00

16 lines
458 B
C++

#include <boost/fit/arg.hpp>
#include <type_traits>
#include "test.hpp"
BOOST_FIT_TEST_CASE()
{
BOOST_FIT_STATIC_TEST_CHECK(boost::fit::arg_c<3>(1,2,3,4,5) == 3);
BOOST_FIT_TEST_CHECK( boost::fit::arg_c<3>(1,2,3,4,5) == 3 );
}
BOOST_FIT_TEST_CASE()
{
BOOST_FIT_STATIC_TEST_CHECK(boost::fit::arg(std::integral_constant<int, 3>())(1,2,3,4,5) == 3);
BOOST_FIT_TEST_CHECK( boost::fit::arg(std::integral_constant<int, 3>())(1,2,3,4,5) == 3 );
}