Add mutation for /a*/ -> /a/

This commit is contained in:
Daniel Gollahon 2016-10-11 01:36:22 -07:00
parent 6d5e7d2814
commit 0a8c9fae31
No known key found for this signature in database
GPG key ID: B561636FDB951129
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@ module Mutant
def dispatch
emit(s(:regexp_greedy_one_or_more, *children))
emit_subject_mutations
emit(subject)
end
end # GreedyZeroOrMore
end # Regexp

View file

@ -4,6 +4,7 @@ Mutant::Meta::Example.add :regexp_greedy_zero_or_more do
singleton_mutations
regexp_mutations
mutation '/\d/'
mutation '/\d+/'
mutation '/\D*/'
end