Simplify range mutator

* Adjust flog score
This commit is contained in:
Markus Schirp 2012-08-15 20:56:38 +02:00
parent 67fb6afc55
commit 35841bded2
2 changed files with 23 additions and 2 deletions

View file

@ -1,2 +1,2 @@
---
threshold: 16.0
threshold: 15.6

View file

@ -36,9 +36,30 @@ module Mutant
# @api private
#
def emit_range
start, finish = node.start, node.finish
emit_finish_mutations
eemit_start_mutations
end
# Emit range start mutations
#
# @return [undefined]
#
# @api private
#
def emit_finish_mutations
finish = node.finish
emit_self(negative_infinity, finish)
emit_self(nan, finish)
end
# Emit start mutations
#
# @return [undefined]
#
# @api private
#
def emit_start_mutations
start = node.start
emit_self(start, infinity)
emit_self(start, nan)
end