We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0ff19a commit 5d19971Copy full SHA for 5d19971
lib/mutant/mutator/node/masgn.rb
@@ -15,6 +15,7 @@ class MultipleAssignment < self
15
16
def dispatch
17
emit_singletons
18
+ emit_right_mutations
19
end
20
21
end # MultipleAssignment
meta/masgn.rb
@@ -1,7 +1,11 @@
1
# frozen_string_literal: true
2
3
Mutant::Meta::Example.add :masgn do
4
- source 'a, b = c, d'
+ source 'a, b = nil, nil'
5
6
singleton_mutations
7
+
8
+ mutation 'a, b = nil'
9
+ mutation 'a, b = []'
10
+ mutation 'a, b = [nil]'
11
0 commit comments