4fba42a5db
[Fix #802]
23 lines
434 B
Ruby
23 lines
434 B
Ruby
# frozen_string_literal: true
|
|
|
|
Mutant::Meta::Example.add :block, :lambda do
|
|
source '->() {}'
|
|
|
|
singleton_mutations
|
|
|
|
mutation '->() { raise }'
|
|
end
|
|
|
|
Mutant::Meta::Example.add :block, :lambda do
|
|
source '->() { foo.bar }'
|
|
|
|
singleton_mutations
|
|
|
|
mutation '->() { }'
|
|
mutation '->() { self }'
|
|
mutation '->() { nil }'
|
|
mutation '->() { raise }'
|
|
mutation '->() { self.bar }'
|
|
mutation '->() { foo }'
|
|
mutation 'foo.bar'
|
|
end
|