diff --git a/lib/mutant/mutator/node/literal/range.rb b/lib/mutant/mutator/node/literal/range.rb index 3d9d1663..db2ee90a 100644 --- a/lib/mutant/mutator/node/literal/range.rb +++ b/lib/mutant/mutator/node/literal/range.rb @@ -11,7 +11,7 @@ module Mutant erange: :irange }.freeze - children :start, :_end + children :lower_bound, :upper_bound handle(*MAP.keys) @@ -34,23 +34,6 @@ module Mutant emit(s(MAP.fetch(node.type), *children)) end - # Emit range start mutations - # - # @return [undefined] - def emit_upper_bound_mutations - emit__end_mutations - emit_type(N_NAN, _end) - end - - # Emit start mutations - # - # @return [undefined] - def emit_lower_bound_mutations - emit_start_mutations - emit_type(start, N_INFINITY) - emit_type(start, N_NAN) - end - end # Range end # Literal end # Node diff --git a/meta/range.rb b/meta/range.rb index 38218827..c06b57a1 100644 --- a/meta/range.rb +++ b/meta/range.rb @@ -3,9 +3,6 @@ Mutant::Meta::Example.add :irange do singleton_mutations mutation '1...100' - mutation '(0.0 / 0.0)..100' - mutation '1..(1.0 / 0.0)' - mutation '1..(0.0 / 0.0)' mutation '-1..100' mutation '0..100' mutation '2..100' @@ -25,9 +22,6 @@ Mutant::Meta::Example.add :erange do singleton_mutations mutation '1..100' - mutation '(0.0 / 0.0)...100' - mutation '1...(1.0 / 0.0)' - mutation '1...(0.0 / 0.0)' mutation '-1...100' mutation '0...100' mutation '2...100' diff --git a/meta/send.rb b/meta/send.rb index 9154f4f0..2bd33f8e 100644 --- a/meta/send.rb +++ b/meta/send.rb @@ -509,14 +509,11 @@ Mutant::Meta::Example.add :send do mutation 'foo(n...-1)' mutation 'foo(nil..-1)' mutation 'foo(self..-1)' - mutation 'foo(n..(1.0 / 0.0))' - mutation 'foo(n..(0.0 / 0.0))' mutation 'foo(n..nil)' mutation 'foo(n..self)' mutation 'foo(n..0)' mutation 'foo(n..1)' mutation 'foo(n..-2)' - mutation 'foo((0.0 / 0.0)..-1)' end Mutant::Meta::Example.add :send do @@ -542,9 +539,6 @@ Mutant::Meta::Example.add :send do mutation 'foo[n...-2]' mutation 'foo[nil..-2]' mutation 'foo[self..-2]' - mutation 'foo[n..(1.0 / 0.0)]' - mutation 'foo[n..(0.0 / 0.0)]' - mutation 'foo[(0.0 / 0.0)..-2]' end Mutant::Meta::Example.add :send do @@ -568,9 +562,6 @@ Mutant::Meta::Example.add :send do mutation 'foo[n...-2]' mutation 'foo[nil...-1]' mutation 'foo[self...-1]' - mutation 'foo[n...(1.0 / 0.0)]' - mutation 'foo[n...(0.0 / 0.0)]' - mutation 'foo[(0.0 / 0.0)...-1]' end Mutant::Meta::Example.add :send do @@ -594,9 +585,6 @@ Mutant::Meta::Example.add :send do mutation 'foo[n...-1]' mutation 'foo[nil..-1]' mutation 'foo[self..-1]' - mutation 'foo[n..(1.0 / 0.0)]' - mutation 'foo[n..(0.0 / 0.0)]' - mutation 'foo[(0.0 / 0.0)..-1]' mutation 'foo.drop(n)' end