Add experimental Regex test based on SampleMatches#79364
Conversation
This adds a (currently disactivated) test that takes the ~15K regexes in our pattern database, generates inputs for each using the NonBacktracking engine's sampler, and then validates all the engines with that pattern. The sampler currently hangs on some patterns, and it asserts on others, so this is manual-only until such issues can be fixed. Still, I was able to run another ~10K patterns through all the engines before it fell over with an assert.
|
Tagging subscribers to this area: @dotnet/area-system-text-regularexpressions Issue DetailsThis adds a (currently disactivated) test that takes the ~15K regexes in our pattern database, generates inputs for each using the NonBacktracking engine's sampler, and then validates all the engines with that pattern. The sampler currently hangs on some patterns, and it asserts on others, so this is manual-only until such issues can be fixed. Still, I was able to run another ~10K patterns through all the engines before it fell over with an assert.
|
Since the test is still disabled, should we keep either this issue open or have a new one to enable it eventually? |
I'll open a new one. Thanks. |
This adds a (currently disactivated) test that takes the ~15K regexes in our pattern database, generates inputs for each using the NonBacktracking engine's sampler, and then validates all the engines with that pattern. The sampler currently hangs on some patterns, and it asserts on others, so this is manual-only until such issues can be fixed. Still, I was able to run another ~10K patterns through all the engines before it fell over with an assert. The sampler also only currently supports generating inputs known to match; it'd be good to also generate inputs known to not match.
Closes #25372