2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :array do
|
2014-06-02 08:57:14 -04:00
|
|
|
source '[true]'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
mutation 'true'
|
|
|
|
mutation '[false]'
|
|
|
|
mutation '[nil]'
|
|
|
|
mutation '[]'
|
|
|
|
end
|
|
|
|
|
2016-03-19 11:13:05 -04:00
|
|
|
Mutant::Meta::Example.add :array do
|
2014-06-02 08:57:14 -04:00
|
|
|
source '[true, false]'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
|
|
|
|
# Mutation of each element in array
|
|
|
|
mutation '[nil, false]'
|
|
|
|
mutation '[false, false]'
|
|
|
|
mutation '[true, nil]'
|
|
|
|
mutation '[true, true]'
|
|
|
|
|
|
|
|
# Remove each element of array once
|
|
|
|
mutation '[true]'
|
|
|
|
mutation '[false]'
|
|
|
|
|
|
|
|
# Empty array
|
|
|
|
mutation '[]'
|
|
|
|
end
|