free_mutant/meta/restarg.rb
2016-10-20 20:52:35 -07:00

7 lines
180 B
Ruby

Mutant::Meta::Example.add :restarg do
source 'def foo(*bar); end'
mutation 'def foo; end'
mutation 'def foo(*bar); bar = []; end'
mutation 'def foo(*bar); raise; end'
end