Create tests of default regex patterns for the application that would be useful users unfamiliar with regexes. Consider each regex by what it means to a human reader, not what the character pattern looks like. For example, "keep contractions together", not "word as a set of word characters plus single quotes."
Some examples:
- All unicode "word" characters
- Hyphenation-preserving regexes
- Contraction-preserving regexes
Acceptance tests:
- Set of patterns with meaningful names
- Comprehensive suite of tests for all regexes that builds a
SpacePreservingLexer with each regex and tests several cases including edge cases.
Create tests of default regex patterns for the application that would be useful users unfamiliar with regexes. Consider each regex by what it means to a human reader, not what the character pattern looks like. For example, "keep contractions together", not "word as a set of word characters plus single quotes."
Some examples:
Acceptance tests:
SpacePreservingLexerwith each regex and tests several cases including edge cases.