free_mutant/meta/casgn.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

28 lines
561 B
Ruby

# frozen_string_literal: true
Mutant::Meta::Example.add :casgn do
source 'A = true'
mutation 'A__MUTANT__ = true'
mutation 'A = false'
mutation 'A = nil'
mutation 'remove_const :A'
end
Mutant::Meta::Example.add :casgn do
source 'self::A = true'
mutation 'self::A__MUTANT__ = true'
mutation 'self::A = false'
mutation 'self::A = nil'
mutation 'self.remove_const :A'
end
Mutant::Meta::Example.add :casgn do
source 'A &&= true'
singleton_mutations
mutation 'A__MUTANT__ &&= true'
mutation 'A &&= false'
mutation 'A &&= nil'
end