free_mutant/lib/mutant/mutator/literal/empty_array.rb
2012-08-09 23:07:22 +02:00

24 lines
426 B
Ruby

module Mutant
class Mutator
class Literal < self
# Mutator for empty array literals
class EmptyArray < self
handle(Rubinius::AST::EmptyArray)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
emit_nil
emit(Rubinius::AST::ArrayLiteral, [new_nil])
end
end
end
end
end