Add mutation for /a*/
-> /a/
This commit is contained in:
parent
6d5e7d2814
commit
0a8c9fae31
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue