free_mutant/meta/regex.rb
Markus Schirp c392cb5e4b Remove redundant encoding comment
* Mutant is ruby 2.0+ only where UTF-8 is default encoding
2015-04-27 21:07:30 +00:00

19 lines
390 B
Ruby

Mutant::Meta::Example.add do
source '/foo/'
singleton_mutations
mutation '//' # match all
mutation '/a\A/' # match nothing
end
Mutant::Meta::Example.add do
source '/#{foo.bar}n/'
singleton_mutations
mutation '//' # match all
mutation '/#{foo}n/'
mutation '/a\A/' # match nothing
mutation '/#{self.bar}n/'
mutation '/#{nil}n/'
mutation '/#{self}n/'
end