Sha256: 4b5103878601b6a779c4a21b1948324f4fa544f40052551e643e0b5d10f76dc9

Contents?: true

Size: 859 Bytes

Versions: 9

Compression:

Stored size: 859 Bytes

Contents

Mutest::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'
  mutation '@a.b + 1'
  mutation '@a.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

Mutest::Meta::Example.add :op_asgn do
  source 'a *= b'

  singleton_mutations
  mutation 'a__mutest__ *= b'
  mutation 'a *= nil'
  mutation 'a *= self'
  mutation 'a * b'
  mutation 'a = b'
end

Mutest::Meta::Example.add :op_asgn do
  source '@a <<= b'

  singleton_mutations
  mutation '@a__mutest__ <<= b'
  mutation '@a <<= nil'
  mutation '@a <<= self'
  mutation '@a << b'
  mutation '@a = b'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mutest-0.0.10 meta/op_assgn.rb
mutest-0.0.9 meta/op_assgn.rb
mutest-0.0.8 meta/op_assgn.rb
mutest-0.0.7 meta/op_assgn.rb
mutest-0.0.6 meta/op_assgn.rb
mutest-0.0.5 meta/op_assgn.rb
mutest-0.0.4 meta/op_assgn.rb
mutest-0.0.3 meta/op_assgn.rb
mutest-0.0.2 meta/op_assgn.rb