2014-06-02 08:57:14 -04:00
|
|
|
# encoding: utf-8
|
|
|
|
|
|
|
|
Mutant::Meta::Example.add do
|
|
|
|
source '{true => true, false => false}'
|
|
|
|
|
2014-06-05 12:37:31 -04:00
|
|
|
singleton_mutations
|
2014-06-02 08:57:14 -04:00
|
|
|
|
|
|
|
# Mutation of each key and value in hash
|
|
|
|
mutation '{ false => true , false => false }'
|
|
|
|
mutation '{ nil => true , false => false }'
|
|
|
|
mutation '{ true => false , false => false }'
|
|
|
|
mutation '{ true => nil , false => false }'
|
|
|
|
mutation '{ true => true , true => false }'
|
|
|
|
mutation '{ true => true , nil => false }'
|
|
|
|
mutation '{ true => true , false => true }'
|
|
|
|
mutation '{ true => true , false => nil }'
|
|
|
|
|
|
|
|
# Remove each key once
|
|
|
|
mutation '{ true => true }'
|
|
|
|
mutation '{ false => false }'
|
|
|
|
|
|
|
|
# Empty hash
|
|
|
|
mutation '{}'
|
|
|
|
end
|