Class: Pairwise::IPO::Vertical

Inherits:
Object
  • Object
show all
Defined in:
lib/pairwise/ipo/vertical.rb

Class Method Summary collapse

Class Method Details

.growth(input_combinations, uncovered_pairs) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/pairwise/ipo/vertical.rb', line 5

def self.growth(input_combinations, uncovered_pairs)
  new_input_combinations = uncovered_pairs.reduce([]) do |new_input_combinations, uncovered_pair|
    new_input_combinations = uncovered_pair.replace_wild_card(new_input_combinations)
  end

  input_combinations + new_input_combinations
end