Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for TPL_CASES with meta-generator #3

Closed
jfalcou opened this issue Sep 28, 2019 · 1 comment · Fixed by #39
Closed

Add support for TPL_CASES with meta-generator #3

jfalcou opened this issue Sep 28, 2019 · 1 comment · Fixed by #39

Comments

@jfalcou
Copy link
Owner

jfalcou commented Sep 28, 2019

Sometimes, we want to use TTS_TPL_CASE but instead of passing a known list of types, the types list need to be generated by a meta-function.

We have to add support such a use case:

template<int N> struct all_array_of
{
  using type = types_<array<int,N>, array<float,N>>:
};

TTS_TPL_CASES2("The scenario", all_array_of<4>)
@jfalcou
Copy link
Owner Author

jfalcou commented Mar 19, 2021

EVE requried something like that, we need to move it over there.

Current API:

EVE_TEST( "Check behavior of replace_ignored(keep_last)"
        , eve::test::simd::all_types
        , eve::test::generate ( eve::test::ramp(0), eve::test::ramp(100) )
        )
<typename T>(T data, T replacement)
{
   // the code
};

@jfalcou jfalcou linked a pull request Jun 6, 2021 that will close this issue
jfalcou added a commit that referenced this issue Jul 1, 2021
This is a major breaking change commit
Fix #3 - Add support for TPL_CASES with meta-generator
Fix #32 - Provide a way to log arbitrary data on failure. 
Fix #33 - ASSERT instead of EXPECT
Fix #34 more digits on output of double results
Fix #37 const char* is not a string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant