Simplify range mutator
* Adjust flog score
This commit is contained in:
parent
67fb6afc55
commit
35841bded2
2 changed files with 23 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
||||||
---
|
---
|
||||||
threshold: 16.0
|
threshold: 15.6
|
||||||
|
|
|
@ -36,9 +36,30 @@ module Mutant
|
||||||
# @api private
|
# @api private
|
||||||
#
|
#
|
||||||
def emit_range
|
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(negative_infinity, finish)
|
||||||
emit_self(nan, 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, infinity)
|
||||||
emit_self(start, nan)
|
emit_self(start, nan)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue