2018-09-12 10:21:24 -04:00
|
|
|
# frozen_string_literal: true
|
2018-09-12 09:15:43 -04:00
|
|
|
|
2016-10-09 21:45:42 -04:00
|
|
|
Mutant::Meta::Example.add :regexp_capture_group do
|
|
|
|
source '/()/'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
regexp_mutations
|
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add :regexp_capture_group do
|
|
|
|
source '/(foo|bar)/'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
regexp_mutations
|
|
|
|
|
|
|
|
mutation '/(?:foo|bar)/'
|
|
|
|
mutation '/(foo)/'
|
|
|
|
mutation '/(bar)/'
|
|
|
|
end
|