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

13 lines
285 B
Ruby

# frozen_string_literal: true
Mutant::Meta::Example.add :regexp_alternation_meta do
source '/\A(foo|bar|baz)\z/'
singleton_mutations
regexp_mutations
mutation '/\A(foo|bar)\z/'
mutation '/\A(foo|baz)\z/'
mutation '/\A(bar|baz)\z/'
mutation '/\A(?:foo|bar|baz)\z/'
end