free_mutant/meta/until.rb
Markus Schirp 7bf70d9634 Add support for explicit type in meta examples
* This is needed to relate examples to node types for nodes that cannot
  stand alone. Example are :where nodes that do not have syntax outside
  a :case
2016-03-19 15:13:05 +00:00

15 lines
469 B
Ruby

Mutant::Meta::Example.add :until do
source 'until true; foo; bar; end'
singleton_mutations
mutation 'until true; bar; end'
mutation 'until true; foo; end'
mutation 'until true; end'
mutation 'until false; foo; bar; end'
mutation 'until nil; foo; bar; end'
mutation 'until true; foo; nil; end'
mutation 'until true; foo; self; end'
mutation 'until true; nil; bar; end'
mutation 'until true; self; bar; end'
mutation 'until true; raise; end'
end