Sha256: 688d56af482d8aecd91b42025ecb9c5af7eea312ff0a3d0e1da413e0756928f9

Contents?: true

Size: 398 Bytes

Versions: 21

Compression:

Stored size: 398 Bytes

Contents

# encoding: utf-8

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

21 entries across 21 versions & 1 rubygems

Version Path
mutant-0.7.8 meta/op_assgn.rb
mutant-0.7.7 meta/op_assgn.rb
mutant-0.7.6 meta/op_assgn.rb
mutant-0.7.5 meta/op_assgn.rb
mutant-0.7.4 meta/op_assgn.rb
mutant-0.7.3 meta/op_assgn.rb
mutant-0.7.2 meta/op_assgn.rb
mutant-0.7.1 meta/op_assgn.rb
mutant-0.6.7 meta/op_assgn.rb
mutant-0.6.6 meta/op_assgn.rb
mutant-0.6.5 meta/op_assgn.rb
mutant-0.6.4 meta/op_assgn.rb
mutant-0.6.3 meta/op_assgn.rb
mutant-0.6.2 meta/op_assgn.rb
mutant-0.6.0 meta/op_assgn.rb
mutant-0.5.26 meta/op_assgn.rb
mutant-0.5.25 meta/op_assgn.rb
mutant-0.5.24 meta/op_assgn.rb
mutant-0.5.23 meta/op_assgn.rb
mutant-0.5.22 meta/op_assgn.rb