Add flat_map
-> map
mutation
This commit is contained in:
parent
df3dcda6e3
commit
8b3a4b74ea
2 changed files with 8 additions and 0 deletions
|
@ -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],
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue