free_mutant/meta/range.rb
Daniel Gollahon 63042bd67e Remove Inf & NaN mutations for ranges
- Removes NaN ranges. NaN..N and N..NaN are never valid ranges so it seemed prudent to keep
  them from being emitted.
- Removes Inf as a range boundary mutation. The infinite case should be covered incrementally by the +1/-1
  mutations.
- Closes #392
2016-07-25 10:36:47 -07:00

37 lines
705 B
Ruby

Mutant::Meta::Example.add :irange do
source '1..100'
singleton_mutations
mutation '1...100'
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 '-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