free_mutant/lib/mutant/mutator/node/literal/nil.rb
Markus Schirp a98319650b Remove nil => Object.new mutation
Mutation operators should *always* mutate to a less powerfull structure
/ less complex semantics. To force tests to prove complex semantics are
needed. The mutation removed with that commit violates that principle.
2014-05-09 20:09:09 +00:00

27 lines
424 B
Ruby

# encoding: utf-8
module Mutant
class Mutator
class Node
class Literal
# Mutator for nil literals
class Nil < self
handle(:nil)
private
# Emit mutants
#
# @return [undefined]
#
# @api private
#
def dispatch
end
end # Nil
end # Literal
end # Node
end # Mutator
end # Mutant