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

Unifying TEST_RANGE & TEST_CASE params #641

Open
AJIOB opened this issue Nov 27, 2022 · 1 comment
Open

Unifying TEST_RANGE & TEST_CASE params #641

AJIOB opened this issue Nov 27, 2022 · 1 comment

Comments

@AJIOB
Copy link
Contributor

AJIOB commented Nov 27, 2022

Adding possibility for passing params to TEST_RANGE without any brackets, that will operate as usual TEST_CASE params.

It will be helpful for implementing param tests with partial params as ranges, partial params as usual values.

For example:

TEST_RANGE("example string value", [20, 40, 4])
void test_unifiedArgs(const char* s, int i)
{
  // test logic
}

expected to be equal to usual TEST_CASE cases:

TEST_CASE("example string value", 20)
TEST_CASE("example string value", 24)
TEST_CASE("example string value", 28)
TEST_CASE("example string value", 32)
TEST_CASE("example string value", 36)
TEST_CASE("example string value", 40)
void test_unifiedArgs(const char* s, int i)
{
  // test logic
}
@AJIOB
Copy link
Contributor Author

AJIOB commented Nov 27, 2022

@mvandervoord Mark, are you interested in that feature?

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

No branches or pull requests

1 participant