free_mutant/meta/regexp/regexp_capture_group.rb

20 lines
335 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2018-09-12 09:15:43 -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