free_mutant/meta/begin.rb
Markus Schirp 99ab9ff171 Change required Ruby version to >=2.3
* This commit does every 2.3 change required to get the build pass
* None of the changes can be extracted, without changing the build setup
2018-09-12 14:21:24 +00:00

23 lines
469 B
Ruby

# frozen_string_literal: true
Mutant::Meta::Example.add :begin do
source 'true; false'
# Mutation of each statement in block
mutation 'true; true'
mutation 'false; false'
mutation 'nil; false'
mutation 'true; nil'
# Delete each statement
mutation 'true'
mutation 'false'
end
Mutant::Meta::Example.add :begin do
source s(:begin, s(:true))
# Mutation of each statement in block
mutation s(:begin, s(:nil))
mutation s(:begin, s(:false))
end