free_mutant/meta/or_asgn.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

33 lines
645 B
Ruby

Mutant::Meta::Example.add do
source 'a ||= 1'
singleton_mutations
mutation 'a__mutant__ ||= 1'
mutation 'a ||= nil'
mutation 'a ||= self'
mutation 'a ||= 0'
mutation 'a ||= -1'
mutation 'a ||= 2'
end
Mutant::Meta::Example.add do
source '@a ||= 1'
singleton_mutations
mutation '@a ||= nil'
mutation '@a ||= self'
mutation '@a ||= 0'
mutation '@a ||= -1'
mutation '@a ||= 2'
end
Mutant::Meta::Example.add do
source 'foo[:bar] ||= 1'
singleton_mutations
mutation 'foo[:bar] ||= nil'
mutation 'foo[:bar] ||= self'
mutation 'foo[:bar] ||= 0'
mutation 'foo[:bar] ||= -1'
mutation 'foo[:bar] ||= 2'
end