2014-06-02 08:57:14 -04:00
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo() { a; b }'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { a }'
|
|
|
|
mutation 'foo { b }'
|
|
|
|
mutation 'foo {}'
|
|
|
|
mutation 'foo { raise }'
|
|
|
|
mutation 'foo { a; nil }'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation 'foo { a; self }'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { nil; b }'
|
2014-06-05 12:37:31 -04:00
|
|
|
mutation 'foo { self; b }'
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo'
|
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo { |a, b| }'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo'
|
|
|
|
mutation 'foo { |a, b| raise }'
|
|
|
|
mutation 'foo { |a, b__mutant__| }'
|
|
|
|
mutation 'foo { |a__mutant__, b| }'
|
|
|
|
mutation 'foo { |a| }'
|
|
|
|
mutation 'foo { |b| }'
|
|
|
|
mutation 'foo { || }'
|
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo { |(a, b), c| }'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { || }'
|
|
|
|
mutation 'foo { |a, b, c| }'
|
|
|
|
mutation 'foo { |(a, b), c| raise }'
|
|
|
|
mutation 'foo { |(a), c| }'
|
|
|
|
mutation 'foo { |(b), c| }'
|
|
|
|
mutation 'foo { |(a, b)| }'
|
|
|
|
mutation 'foo { |c| }'
|
|
|
|
mutation 'foo { |(a__mutant__, b), c| }'
|
|
|
|
mutation 'foo { |(a, b__mutant__), c| }'
|
|
|
|
mutation 'foo { |(a, b), c__mutant__| }'
|
|
|
|
mutation 'foo'
|
|
|
|
end
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source 'foo { |(a)| }'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'foo { || }'
|
|
|
|
mutation 'foo { |a| }'
|
|
|
|
mutation 'foo { |(a)| raise }'
|
|
|
|
mutation 'foo { |(a__mutant__)| }'
|
|
|
|
mutation 'foo'
|
|
|
|
end
|