![Markus Schirp](/assets/img/avatar_default.png)
The mutation examples are now introspectable, this allows to render nice index or performing better automated analysis against the corpus.
14 lines
278 B
Ruby
14 lines
278 B
Ruby
# encoding: utf-8
|
|
|
|
Mutant::Meta::Example.add do
|
|
source 'true if /foo/'
|
|
|
|
mutation 'false if /foo/'
|
|
mutation 'true if //'
|
|
mutation 'nil if /foo/'
|
|
mutation 'true if true'
|
|
mutation 'true if false'
|
|
mutation 'true if nil'
|
|
mutation 'true if /a\A/'
|
|
mutation 'nil'
|
|
end
|