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

43 lines
880 B
Ruby

Mutant::Meta::Example.add :irange do
source '1..100'
singleton_mutations
mutation '1...100'
mutation '(0.0 / 0.0)..100'
mutation '1..(1.0 / 0.0)'
mutation '1..(0.0 / 0.0)'
mutation '-1..100'
mutation '0..100'
mutation '2..100'
mutation 'nil..100'
mutation 'self..100'
mutation '1..nil'
mutation '1..self'
mutation '1..0'
mutation '1..1'
mutation '1..99'
mutation '1..101'
mutation '1..-100'
end
Mutant::Meta::Example.add :erange do
source '1...100'
singleton_mutations
mutation '1..100'
mutation '(0.0 / 0.0)...100'
mutation '1...(1.0 / 0.0)'
mutation '1...(0.0 / 0.0)'
mutation '-1...100'
mutation '0...100'
mutation '2...100'
mutation 'nil...100'
mutation 'self...100'
mutation '1...nil'
mutation '1...self'
mutation '1...0'
mutation '1...1'
mutation '1...99'
mutation '1...101'
mutation '1...-100'
end