free_mutant/meta/regexp/regexp_bol_anchor.rb

14 lines
193 B
Ruby
Raw Normal View History

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