Add flat_map -> map mutation

This commit is contained in:
Daniel Gollahon 2016-10-09 18:03:47 -07:00
parent df3dcda6e3
commit 8b3a4b74ea
No known key found for this signature in database
GPG key ID: B561636FDB951129
2 changed files with 8 additions and 0 deletions

View file

@ -18,6 +18,7 @@ module Mutant
reverse_each: %i[each],
reverse_merge: %i[merge],
map: %i[each],
flat_map: %i[map],
sample: %i[first last],
pop: %i[last],
shift: %i[first],

View file

@ -128,6 +128,13 @@ Mutant::Meta::Example.add :send do
mutation 'each'
end
Mutant::Meta::Example.add :send do
source 'flat_map'
singleton_mutations
mutation 'map'
end
Mutant::Meta::Example.add :send do
source 'foo.to_s'