Skip to content

Commit

Permalink
Add a test with N=1089 to mp_find.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Dec 21, 2024
1 parent 279041f commit 784ff13
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/mp_find.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,16 @@ int main()
BOOST_TEST_TRAIT_TRUE((std::is_same<mp_find<L5, X2>, mp_size_t<1>>));
}

{
using boost::mp11::mp_iota_c;

int const N = 1089;

using L = mp_iota_c<N>;
using R = mp_find<L, mp_size_t<N/2>>;

BOOST_TEST_TRAIT_TRUE((std::is_same<R, mp_size_t<N/2>>));
}

return boost::report_errors();
}

0 comments on commit 784ff13

Please sign in to comment.