free_mutant/meta/or_asgn.rb
Markus Schirp fe1deba411 Fix repo location of rubyspec
* Fix bug exposed by new rubyspec location
* Fix excludes on corpus to actually *do stuff*.
2015-12-19 22:17:30 +00:00

48 lines
882 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 ||= nil'
singleton_mutations
end
Mutant::Meta::Example.add do
source '@a ||= self.bar'
singleton_mutations
mutation '@a ||= nil'
mutation '@a ||= self'
mutation '@a ||= bar'
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