free_mutant/meta/regexp/regexp_root_expression.rb
John Backus 770f34eee5
Reintroduce Regexp mutations
- Reverts commit 8c0c656aec
- Fixes #595
- Adds support for `\h` and `\H`
2016-07-25 12:21:50 -07:00

13 lines
198 B
Ruby

Mutant::Meta::Example.add :regexp_root_expression do
source '/^/'
singleton_mutations
# match all inputs
mutation '//'
# match no input
mutation '/nomatch\A/'
mutation '/\\A/'
end