Add existing proc mutations
This commit is contained in:
parent
a40ba534f8
commit
a60da5c296
1 changed files with 27 additions and 0 deletions
27
meta/send.rb
27
meta/send.rb
|
@ -717,3 +717,30 @@ Mutant::Meta::Example.add :send do
|
|||
mutation '!self&.!'
|
||||
mutation '!(!foo)'
|
||||
end
|
||||
|
||||
Mutant::Meta::Example.add :send do
|
||||
source 'custom.proc { }'
|
||||
|
||||
singleton_mutations
|
||||
mutation 'custom.proc'
|
||||
mutation 'custom { }'
|
||||
mutation 'self.proc { }'
|
||||
mutation 'custom.proc { raise }'
|
||||
end
|
||||
|
||||
Mutant::Meta::Example.add :send do
|
||||
source 'proc { }'
|
||||
|
||||
singleton_mutations
|
||||
mutation 'proc'
|
||||
mutation 'proc { raise }'
|
||||
end
|
||||
|
||||
Mutant::Meta::Example.add :send do
|
||||
source 'Proc.new { }'
|
||||
|
||||
singleton_mutations
|
||||
mutation 'Proc.new'
|
||||
mutation 'self.new { }'
|
||||
mutation 'Proc.new { raise }'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue