free_mutant/meta/ivasgn.rb
Markus Schirp 99ab9ff171 Change required Ruby version to >=2.3
* This commit does every 2.3 change required to get the build pass
* None of the changes can be extracted, without changing the build setup
2018-09-12 14:21:24 +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