free_mutant/meta/ensure.rb
2018-09-12 13:15:43 +00:00

9 lines
231 B
Ruby

# frozen_string_literal: true
Mutant::Meta::Example.add :ensure do
source 'begin; rescue; ensure; true; end'
singleton_mutations
mutation 'begin; rescue; ensure; false; end'
mutation 'begin; rescue; ensure; nil; end'
end