mirror of
https://github.com/boostorg/hof.git
synced 2026-01-20 16:42:14 +00:00
16 lines
388 B
C++
16 lines
388 B
C++
#include <fit/arg.hpp>
|
|
#include <type_traits>
|
|
#include "test.hpp"
|
|
|
|
FIT_TEST_CASE()
|
|
{
|
|
FIT_STATIC_TEST_CHECK(fit::arg_c<3>(1,2,3,4,5) == 3);
|
|
FIT_TEST_CHECK( fit::arg_c<3>(1,2,3,4,5) == 3 );
|
|
}
|
|
|
|
FIT_TEST_CASE()
|
|
{
|
|
FIT_STATIC_TEST_CHECK(fit::arg(std::integral_constant<int, 3>())(1,2,3,4,5) == 3);
|
|
FIT_TEST_CHECK( fit::arg(std::integral_constant<int, 3>())(1,2,3,4,5) == 3 );
|
|
}
|