|
|
|
|
|
by Drup
1854 days ago
|
|
Creating strings that match a regex can be very useful for testing too, as it allows you to fuzz a regex engine without using another regex engine as oracle. It is indeed quite subtle to be "productive" (that's how we say we will explore both "+"). I wrote a paper about how to do it well a few years ago, with quite a few tricks: https://regex-generate.github.io/regenerate/ |
|
Eg you can say that if string s match expression e, than s should also match e|e'. (Where e' is some other expression.)