Skip to content

Improve regex for test parameterization to support function pointers#550

Merged
mvandervoord merged 2 commits intoThrowTheSwitch:masterfrom
jannisbaudisch:fix_test_parameterization_regex
Feb 6, 2023
Merged

Improve regex for test parameterization to support function pointers#550
mvandervoord merged 2 commits intoThrowTheSwitch:masterfrom
jannisbaudisch:fix_test_parameterization_regex

Conversation

@jannisbaudisch
Copy link

The regex to match function names for the test parameterization used the
wildcard '.*'. This lead to an error when you try to add a function
pointer as arguement.

The regex will now only match the word characters a-z A-Z 0-9 and
underscore (which are all characers that are accepted by the C standard)

The regex to match function names for the test parameterization used the
wildcard '.*'. This lead to an error when you try to add a function
pointer as arguement.

The regex will now only match the word characters a-z A-Z 0-9 and
underscore (which are all characers that are accepted by the C standard)
@jannisbaudisch jannisbaudisch reopened this Apr 1, 2021
@mvandervoord mvandervoord merged commit 5204c1b into ThrowTheSwitch:master Feb 6, 2023
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 this pull request may close these issues.

2 participants