test_reallocation_shrink

Function test_reallocation_shrink 

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

Tests memory reallocation to a smaller size.

Verifies that the manager can shrink an existing allocation and preserve data up to the new size.

§Parameters

  • manager - The memory manager to test

§Panics

Panics if reallocation fails or data is not preserved.