Sha256: 17c633980cd3adeb579458855e0681b3c77ad9d342a22e99c13ba080305a764c

Contents?: true

Size: 379 Bytes

Versions: 7

Compression:

Stored size: 379 Bytes

Contents

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

  singleton_mutations
  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

7 entries across 7 versions & 1 rubygems

Version Path
mutant-0.8.5 meta/op_assgn.rb
mutant-0.8.4 meta/op_assgn.rb
mutant-0.8.3 meta/op_assgn.rb
mutant-0.8.2 meta/op_assgn.rb
mutant-0.8.1 meta/op_assgn.rb
mutant-0.8.0 meta/op_assgn.rb
mutant-0.7.9 meta/op_assgn.rb