3 ms·
If you use a regex in your application you need to write lots of unit tests for it that include many negative test cases. Perhaps even look for a test case gene
by dboreham 3y ago
If you use a regex in your application you need to write lots of unit tests for it that include many negative test cases. Perhaps even look for a test case generation tool/library that helps automate this.
- layer8 3y agoThe better solution is to have a formal specification of the syntax, that the regular expression can straightforwardly be derived from and be compared with.