Skip to content

Commit

Permalink
Correct test's usage of non-square nested arrays
Browse files Browse the repository at this point in the history
Doing so also removes a discrepancy between the 'it' description and
actual test code.
  • Loading branch information
Eric Mathison committed Feb 26, 2014
1 parent 39e85fe commit 6f2787b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions session3/spec/5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 22,8 @@ def should_see(ary_of_arys, expected)
should_see [[1,2],[4,3]], [1,2,3,4]
end


it 'should yield 1,2,3,4,5,6 when given [[1,2,3],[8,9,4],[7,6,5]]' do
should_see [[1,2,3],[6,5,4]], [1,2,3,4,5,6]
it 'should yield 1,2,3,4,5,6,7,8,9 when given [[1,2,3],[8,9,4],[7,6,5]]' do
should_see [[1,2,3], [8,9,4], [7,6,5]], [1,2,3,4,5,6,7,8,9]
end

it 'should fit the example given in the notes' do
Expand Down

0 comments on commit 6f2787b

Please sign in to comment.