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

18 lines
303 B
Ruby

# frozen_string_literal: true
Mutant::Meta::Example.add :regexp_bos_anchor do
source '/\A/'
singleton_mutations
regexp_mutations
end
Mutant::Meta::Example.add :regexp_bos_anchor do
source '/^#{a}/'
singleton_mutations
regexp_mutations
mutation '/^#{nil}/'
mutation '/^#{self}/'
end