free_mutant/meta/match_current_line.rb
Markus Schirp 4a9ab9340e Define expected mutations with less redundancy
The mutation examples are now introspectable, this allows to render nice
index or performing better automated analysis against the corpus.
2014-06-02 14:05:11 +00:00

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