Add existing proc mutations

This commit is contained in:
John Backus 2016-10-09 22:09:49 -07:00
parent a40ba534f8
commit a60da5c296
No known key found for this signature in database
GPG key ID: 9A91898D0B0B2FBE

View file

@ -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