2014-06-02 12:57:14 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'a ||= 1'
|
|
|
|
|
2014-06-05 16:37:31 +00:00
|
|
|
singleton_mutations
|
2014-06-02 12:57:14 +00:00
|
|
|
mutation 'a__mutant__ ||= 1'
|
|
|
|
mutation 'a ||= nil'
|
2014-06-05 16:37:31 +00:00
|
|
|
mutation 'a ||= self'
|
2014-06-02 12:57:14 +00:00
|
|
|
mutation 'a ||= 0'
|
|
|
|
mutation 'a ||= -1'
|
|
|
|
mutation 'a ||= 2'
|
|
|
|
end
|
2014-06-04 16:09:24 +00:00
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source '@a ||= 1'
|
|
|
|
|
2014-06-05 16:37:31 +00:00
|
|
|
singleton_mutations
|
2014-06-04 16:09:24 +00:00
|
|
|
mutation '@a ||= nil'
|
2014-06-05 16:37:31 +00:00
|
|
|
mutation '@a ||= self'
|
2014-06-04 16:09:24 +00:00
|
|
|
mutation '@a ||= 0'
|
|
|
|
mutation '@a ||= -1'
|
|
|
|
mutation '@a ||= 2'
|
|
|
|
end
|
2014-06-29 21:25:17 +00:00
|
|
|
|
|
|
|
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
|