Skip to content

Commit

Permalink
Add painfully slow to create hash at max capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
ysbaddaden committed Jan 16, 2025
1 parent 87f51fa commit 03716a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/std/hash_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,10 @@ describe "Hash" do
hash.@indices_size_pow2.should eq(12)
end

it "creates with max capacity", slow: true do
Hash(Int32, Int32).new(initial_capacity: Int32::MAX)
end

describe "#rehash" do
it "rehashes" do
a = [1]
Expand Down

0 comments on commit 03716a2

Please sign in to comment.