free_mutant/meta/lvar.rb
Markus Schirp c392cb5e4b Remove redundant encoding comment
* Mutant is ruby 2.0+ only where UTF-8 is default encoding
2015-04-27 21:07:30 +00:00

14 lines
464 B
Ruby

Mutant::Meta::Example.add do
source 'a = nil; a'
mutation 'a = nil; nil'
mutation 'a = nil; self'
mutation 'a = nil'
# TODO: fix invalid AST
# These ASTs are not valid and should NOT be emitted
# Mutations of lvarasgn need to be special cased to avoid this.
mutation s(:begin, s(:lvasgn, :a__mutant__, s(:nil)), s(:lvar, :a))
mutation s(:begin, s(:nil), s(:lvar, :a))
mutation s(:begin, s(:self), s(:lvar, :a))
mutation s(:lvar, :a)
end