Sha256: d8f106eb52643c332c9f9482ff45e265584c8c6d225b6815b379535f19d8b1d0

Contents?: true

Size: 410 Bytes

Versions: 6

Compression:

Stored size: 410 Bytes

Contents

Mutant::Meta::Example.add :op_asgn do
  source '@a.b += 1'

  singleton_mutations
  mutation 'a.b += 1'
  mutation '@a.b += -1'
  mutation '@a.b += 2'
  mutation '@a.b += 0'
  mutation '@a.b += nil'
  mutation '@a.b += self'
  mutation 'self.b += 1'
  # TODO: fix invalid AST
  #   This should not get emitted as invalid AST with valid unparsed source
  mutation s(:op_asgn, s(:ivar, :@a), :+, s(:int, 1))
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mutant-0.8.16 meta/op_assgn.rb
mutant-0.8.15 meta/op_assgn.rb
mutant-0.8.14 meta/op_assgn.rb
mutant-0.8.13 meta/op_assgn.rb
mutant-0.8.12 meta/op_assgn.rb
mutant-0.8.11 meta/op_assgn.rb