free_mutant/meta/regexp/regexp_capture_group.rb
2018-09-12 13:15:43 +00:00

19 lines
335 B
Ruby

# frozen_string_literal: true
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