Sha256: 8aaf37b01ea4819d73821d9d373a39f401ea0a9db35791b2fbd7b15ad595f3a3

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

Mutant::Meta::Example.add 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

5 entries across 5 versions & 1 rubygems

Version Path
mutant-0.8.10 meta/op_assgn.rb
mutant-0.8.9 meta/op_assgn.rb
mutant-0.8.8 meta/op_assgn.rb
mutant-0.8.7 meta/op_assgn.rb
mutant-0.8.6 meta/op_assgn.rb