2
0
mirror of https://github.com/boostorg/hof.git synced 2026-01-23 05:32:13 +00:00
Files
hof/test/args.cpp
2015-04-24 21:21:10 -05:00

15 lines
384 B
C++

#include <fit/args.h>
#include <type_traits>
#include "test.h"
FIT_TEST_CASE()
{
FIT_STATIC_TEST_CHECK(fit::args<3>(1,2,3,4,5) == 3);
FIT_TEST_CHECK( fit::args<3>(1,2,3,4,5) == 3 );
}
FIT_TEST_CASE()
{
FIT_STATIC_TEST_CHECK(fit::args(std::integral_constant<int, 3>())(1,2,3,4,5) == 3);
FIT_TEST_CHECK( fit::args(std::integral_constant<int, 3>())(1,2,3,4,5) == 3 );
}