lib/mutest/mutator/node/literal/array.rb in mutest-0.0.9 vs lib/mutest/mutator/node/literal/array.rb in mutest-0.0.10

- old
+ new

@@ -13,12 +13,14 @@ # @return [undefined] def dispatch emit_singletons emit_type mutate_body + return unless children.one? - emit(children.first) + + emit(Mutest::Util.one(children)) end # Mutate body # # @return [undefined] @@ -28,10 +30,10 @@ dup_children.delete_at(index) emit_type(*dup_children) mutate_child(index) end end - end # Array - end # Literal - end # Node - end # Mutator -end # Mutest + end + end + end + end +end