2018-09-12 10:21:24 -04:00
|
|
|
# frozen_string_literal: true
|
2018-09-12 09:15:43 -04:00
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :until do
|
2014-06-05 12:37:31 -04:00
|
|
|
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
|