2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :casgn do
|
2014-06-02 08:57:14 -04:00
|
|
|
source 'A = true'
|
|
|
|
|
|
|
|
mutation 'A__MUTANT__ = true'
|
|
|
|
mutation 'A = false'
|
|
|
|
mutation 'A = nil'
|
2015-08-10 19:58:23 -04:00
|
|
|
mutation 'remove_const :A'
|
|
|
|
end
|
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :casgn do
|
2015-08-10 19:58:23 -04:00
|
|
|
source 'self::A = true'
|
|
|
|
|
|
|
|
mutation 'self::A__MUTANT__ = true'
|
|
|
|
mutation 'self::A = false'
|
|
|
|
mutation 'self::A = nil'
|
|
|
|
mutation 'self.remove_const :A'
|
2014-06-02 08:57:14 -04:00
|
|
|
end
|
2016-03-06 16:19:32 -05:00
|
|
|
|
|
|
|
Mutant::Meta::Example.add :casgn do
|
|
|
|
source 'A &&= true'
|
|
|
|
|
|
|
|
singleton_mutations
|
|
|
|
mutation 'A__MUTANT__ &&= true'
|
|
|
|
mutation 'A &&= false'
|
|
|
|
mutation 'A &&= nil'
|
|
|
|
end
|