free_mutant/meta/regexp/regexp_root_expression.rb

14 lines
198 B
Ruby
Raw Normal View History

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