Skip to content

Commit

Permalink
moved comment to the code it belonged to
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarin committed Oct 25, 2023
1 parent 40e2e47 commit f470cfc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions spec/shared_print/finder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

def phase_in_phase_out(input_phases)
if input_phases.empty?
# Edge case:
# SharedPrint::Finder.new(phase: []).commitments
# ... actually returns commitments with all phases.
input_phases = [1, 2, 3]
end
finder = described_class.new(phase: input_phases)
Expand Down Expand Up @@ -79,18 +82,13 @@ def phase_in_phase_out(input_phases)
# Look up commitments using a phase array.
# Expect the phases of all commitments in the output
# to match the phases of the input.

phase_in_phase_out([1])
phase_in_phase_out([2])
phase_in_phase_out([3])
phase_in_phase_out([1, 2])
phase_in_phase_out([2, 3])
phase_in_phase_out([1, 2, 3])
phase_in_phase_out([])

# Edge case:
# SharedPrint::Finder.new(phase: []).commitments
# ... actually returns commitments with all phases.
end
end

Expand Down

0 comments on commit f470cfc

Please sign in to comment.