Skip to content

Commit

Permalink
Update inspect spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GarrisonJ committed May 7, 2024
1 parent 87dea86 commit 44c7c1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/sorted_array_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1246,10 +1246,10 @@ def dig(key)

describe "inspect" do
it "should return a string representation of the array" do
array = SortedContainers::SortedArray.new([1, 2, 3, 4, 5, 6, 7])
array = SortedContainers::SortedArray.new([1, 2, 3, 4, 5, 6, 7], load_factor: 2)
expect(array.inspect).to eq(
"#<SortedContainers::SortedArray size=7 array_index=[] offset=0 maxes=[7] " \
"items=[1, 2, 3, 4, 5, 6, 7]>"
"#<SortedContainers::SortedArray size=7 array_index=[] offset=0 maxes=[2, 4, 6, 7] " \
"items=[[1, 2], [3, 4], [5, 6], [7]]>"
)
end
end
Expand Down

0 comments on commit 44c7c1b

Please sign in to comment.