9e8b451933
* This is in progress code. The plan is to support all literals before beginning to cleanup and dedup the mutation generation. Have to understand the AST and the possible mutations more in depth before making structural decisions here.
13 lines
225 B
Ruby
13 lines
225 B
Ruby
module Mutant
|
|
class Mutator
|
|
class EmptyArray < Mutator
|
|
|
|
private
|
|
|
|
def mutants(generator)
|
|
generator << new_nil
|
|
generator << new(Rubinius::AST::ArrayLiteral,[new_nil])
|
|
end
|
|
end
|
|
end
|
|
end
|