free_mutant/meta/and_asgn.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

12 lines
228 B
Ruby

Mutant::Meta::Example.add :and_asgn do
source 'a &&= 1'
singleton_mutations
mutation 'a__mutant__ &&= 1'
mutation 'a &&= nil'
mutation 'a &&= 0'
mutation 'a &&= -1'
mutation 'a &&= 2'
mutation 'a &&= self'
end