Skip to content

Commit 784ff13

Browse files
committed
Add a test with N=1089 to mp_find.cpp
1 parent 279041f commit 784ff13

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/mp_find.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,16 @@ int main()
5959
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_find<L5, X2>, mp_size_t<1>>));
6060
}
6161

62+
{
63+
using boost::mp11::mp_iota_c;
64+
65+
int const N = 1089;
66+
67+
using L = mp_iota_c<N>;
68+
using R = mp_find<L, mp_size_t<N/2>>;
69+
70+
BOOST_TEST_TRAIT_TRUE((std::is_same<R, mp_size_t<N/2>>));
71+
}
72+
6273
return boost::report_errors();
6374
}

0 commit comments

Comments
 (0)