lib/veritas/optimizer/function/connective/conjunction.rb in veritas-optimizer-0.0.4 vs lib/veritas/optimizer/function/connective/conjunction.rb in veritas-optimizer-0.0.5
- old
+ new
@@ -71,10 +71,10 @@
# @return [Exclusion]
#
# @api private
def optimize
left = self.left
- Veritas::Function::Predicate::Exclusion.new(left.left, [ left.right, right.right ]).optimize
+ Veritas::Function::Predicate::Exclusion.new(left.left, merged_right_enumerables).optimize
end
end # class OptimizableToExclusion
# Optimize when the operands are a contradiction