test_reallocation_same_size

Function test_reallocation_same_size 

Source
pub fn test_reallocation_same_size(allocator: impl ManagerTrait)
Expand description

Tests reallocation with the same size.

Verifies that reallocating with the same size either returns the same pointer or successfully creates a new allocation with preserved data.

ยงParameters

  • manager - The memory manager to test