
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.
27 lines
424 B
Ruby
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
|