Clean up type for CompactMap chunk IDs.

This commit is contained in:
Lisandro Pin committed 2025-06-05 15:30:39 +02:00
1 parent 4eaed7f206
commit ba4b91ba5e
2 files changed
+17 -13

No files matched your search

+2 -2
View File
@@ -381,7 +381,7 @@ func TestSegmentForKey(t *testing.T) {
}
wantMap := &CompactMap{
segments: map[int]*CompactMapSegment{
segments: map[Chunk]*CompactMapSegment{
0: &CompactMapSegment{
list: []CompactNeedleValue{},
chunk: 0,
@@ -438,7 +438,7 @@ func TestAscendingVisit(t *testing.T) {
}
}
func TestOrdering(t *testing.T) {
func TestRandomInsert(t *testing.T) {
count := 8 * SegmentChunkSize
keys := []types.NeedleId{}
for i := 0; i < count; i++ {