free_mutant/meta/ivasgn.rb
2018-09-12 13:15:43 +00:00

23 lines
429 B
Ruby

# frozen_string_literal: true
Mutant::Meta::Example.add :ivasgn do
source '@a = true'
singleton_mutations
mutation '@a__mutant__ = true'
mutation '@a = false'
mutation '@a = nil'
end
Mutant::Meta::Example.add :ivasgn do
source '@a &&= 1'
singleton_mutations
mutation '@a__mutant__ &&= 1'
mutation '@a &&= nil'
mutation '@a &&= 0'
mutation '@a &&= -1'
mutation '@a &&= 2'
mutation '@a &&= self'
end