Method: Pairwise::TestPair#replace_wild_card

Defined in:
lib/pairwise/test_pair.rb

#replace_wild_card(new_input_combinations) ⇒ Object



21
22
23
24
25
26
27
28
29
# File 'lib/pairwise/test_pair.rb', line 21

def replace_wild_card(new_input_combinations)
  #TODO: Decided if we should replace all matches or single matches?
  if wild_card_index = find_wild_card_index(new_input_combinations)
    new_input_combinations[wild_card_index][@p2_position] = @p2
  else
    new_input_combinations << create_input_list
  end
  new_input_combinations
end