2018-09-12 10:21:24 -04:00
|
|
|
# frozen_string_literal: true
|
2018-09-12 09:15:43 -04:00
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :or_asgn do
|
2014-06-02 08:57:14 -04:00
|
|
|
source 'a ||= 1'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'a__mutant__ ||= 1'
|
|
|
|
mutation 'a ||= nil'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation 'a ||= self'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'a ||= 0'
|
|
|
|
mutation 'a ||= -1'
|
|
|
|
mutation 'a ||= 2'
|
|
|
|
end
|
2014-06-04 12:09:24 -04:00
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :or_asgn do
|
2014-06-04 12:09:24 -04:00
|
|
|
source '@a ||= 1'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-04 12:09:24 -04:00
|
|
|
mutation '@a ||= nil'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation '@a ||= self'
|
2014-06-04 12:09:24 -04:00
|
|
|
mutation '@a ||= 0'
|
|
|
|
mutation '@a ||= -1'
|
|
|
|
mutation '@a ||= 2'
|
|
|
|
end
|
2014-06-29 17:25:17 -04:00
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :or_asgn do
|
2015-12-19 17:17:30 -05:00
|
|
|
source 'Foo ||= nil'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
end
|
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :or_asgn do
|
2015-08-19 17:59:37 -04:00
|
|
|
source '@a ||= self.bar'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
mutation '@a ||= nil'
|
|
|
|
mutation '@a ||= self'
|
|
|
|
mutation '@a ||= bar'
|
|
|
|
end
|
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :or_asgn do
|
2014-06-29 17:25:17 -04:00
|
|
|
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
|