7bf70d9634
* This is needed to relate examples to node types for nodes that cannot stand alone. Example are :where nodes that do not have syntax outside a :case
22 lines
668 B
Ruby
22 lines
668 B
Ruby
Mutant::Meta::Example.add :hash do
|
|
source '{true => true, false => false}'
|
|
|
|
singleton_mutations
|
|
|
|
# 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
|