Emit vcall mutation again
This commit is contained in:
parent
939e25cb4a
commit
000380c1e0
3 changed files with 6 additions and 7 deletions
2
.rspec
2
.rspec
|
@ -1,3 +1 @@
|
|||
--color
|
||||
--fail-fast
|
||||
--backtrace
|
||||
|
|
|
@ -67,7 +67,6 @@ module Mutant
|
|||
# @api private
|
||||
#
|
||||
def emit_implicit_self_receiver
|
||||
return;
|
||||
# FIXME: Edge case that is currently not very well undestood
|
||||
return if name == :block_given?
|
||||
return unless self?
|
||||
|
|
|
@ -26,11 +26,13 @@ shared_examples_for 'a mutator' do
|
|||
end
|
||||
|
||||
it 'generates the expected mutations' do
|
||||
subject = self.subject.map(&:to_sexp).to_set
|
||||
generated = self.subject.map(&:to_sexp).to_set
|
||||
|
||||
unless subject == expected_mutations
|
||||
message = "Missing mutations: %s\nUnexpected mutations: %s" %
|
||||
[expected_mutations - subject, subject - expected_mutations ].map(&:to_a).map(&:inspect)
|
||||
missing = (expected_mutations - generated).to_a
|
||||
unexpected = (generated - generated).to_a
|
||||
|
||||
unless generated == expected_mutations
|
||||
message = "Missing mutations: %s\nUnexpected mutations: %s" % [missing, unexpected].map(&:inspect)
|
||||
fail message
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue