Sha256: 60e257f99fc81d18a2e5064b579686ab8484dec2b7ae3084464dcfba9dba5086
Contents?: true
Size: 702 Bytes
Versions: 18
Compression:
Stored size: 702 Bytes
Contents
module Mutant class Mutator class Node class Literal < self # Mutator for fixnum literals class Fixnum < self handle(Rubinius::AST::FixnumLiteral) private # Emit mutants # # @return [undefined] # # @api private # def dispatch emit_nil emit_values(values) emit_new { new_self(Random.fixnum) } end # Return values to mutate against # # @return [Array] # # @api private # def values [0, 1, -node.value] end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems