class Mutest::Mutator::Node::Literal::Float
Mutator
for float literals
Constants
- SPECIAL
Private Instance Methods
dispatch()
click to toggle source
Emit mutations
@return [undefined]
# File lib/mutest/mutator/node/literal/float.rb, line 14 def dispatch emit_singletons emit_values emit_special_cases end
emit_special_cases()
click to toggle source
Emit special cases
@return [undefined]
# File lib/mutest/mutator/node/literal/float.rb, line 29 def emit_special_cases SPECIAL.each(&method(:emit)) end
values()
click to toggle source
Values to mutate to
@return [Array]
# File lib/mutest/mutator/node/literal/float.rb, line 36 def values original = children.first [0.0, 1.0, -original] end