free_mutant/meta/range.rb
Markus Schirp c392cb5e4b Remove redundant encoding comment
* Mutant is ruby 2.0+ only where UTF-8 is default encoding
2015-04-27 21:07:30 +00:00

43 lines
864 B
Ruby

Mutant::Meta::Example.add 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 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