Skip to content

Commit 5d19971

Browse files
committed
Add missing masgn mutations
1 parent a0ff19a commit 5d19971

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/mutant/mutator/node/masgn.rb

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ class MultipleAssignment < self
1515

1616
def dispatch
1717
emit_singletons
18+
emit_right_mutations
1819
end
1920

2021
end # MultipleAssignment

meta/masgn.rb

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# frozen_string_literal: true
22

33
Mutant::Meta::Example.add :masgn do
4-
source 'a, b = c, d'
4+
source 'a, b = nil, nil'
55

66
singleton_mutations
7+
8+
mutation 'a, b = nil'
9+
mutation 'a, b = []'
10+
mutation 'a, b = [nil]'
711
end

0 commit comments

Comments
 (0)