Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed failing tests. not sure why they're failing but the fix is the …

…right way to go regardless.

[git-p4: depot-paths = "//src/heckle/dev/": change = 3766]
  • Loading branch information...
commit 2c99d2dada91d87f31c9b8477298c6e0e18a35f7 1 parent 53ff01f
@zenspider zenspider authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/heckle.rb
View
3  lib/heckle.rb
@@ -553,8 +553,9 @@ def aliasing_class(method_name)
def should_heckle?(exp)
return false unless method == method_name
return false if node_count[exp] <= mutation_count[exp]
+ key = exp.first.to_sym
- mutatees[exp.first.to_sym].include?(exp) && !already_mutated?
+ mutatees.include?(key) && mutatees[key].include?(exp) && !already_mutated?
end
def grab_conditional_loop_parts(exp)
Please sign in to comment.
Something went wrong with that request. Please try again.