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 :begin do
|
2014-06-02 08:57:14 -04:00
|
|
|
|
|
|
|
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
|
2014-06-09 10:56:13 -04:00
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :begin do
|
2014-06-09 10:56:13 -04:00
|
|
|
|
|
|
|
source s(:begin, s(:true))
|
|
|
|
# Mutation of each statement in block
|
|
|
|
mutation s(:begin, s(:nil))
|
2014-11-09 14:31:28 -05:00
|
|
|
mutation s(:begin, s(:false))
|
2014-06-09 10:56:13 -04:00
|
|
|
end
|