Catch2
Catch2 copied to clipboard
Testing product of template parameters
Description
Say I want to test std::array<T, N> for certain list of Ts and Ns.
E.g., for T = char, short, int, long and N = 1, 2, 3, 4, 5. Total of 20 combinations.
In my understanding TEMPLATE_PRODUCT_TEST_CASE_SIG is not suitable for that.
(If it is, then the documentation is not clear).
Does Catch2 have functionality for products like this, so the example above would require listing 4 and 5 template parameters along respective dimensions (and not all 20 cases which I have to do with TEMPLATE_TEST_CASE_SIG) ?