diff --git a/std/experimental/allocator/building_blocks/bitmapped_block.d b/std/experimental/allocator/building_blocks/bitmapped_block.d index bf33c7db8..8a180eea9 100644 --- a/std/experimental/allocator/building_blocks/bitmapped_block.d +++ b/std/experimental/allocator/building_blocks/bitmapped_block.d @@ -845,11 +845,11 @@ unittest testAllocateAll!(128 * 20)(13 * 128, 128); } -// Test totakAllocation +// Test totalAllocation unittest { BitmappedBlock!(8, 8, NullAllocator) h1; - assert(h1.totalAllocation(1) == 16); + assert(h1.totalAllocation(1) >= 8); assert(h1.totalAllocation(64) == 8 + 8 * 8); //writeln(h1.totalAllocation(8 * 64)); assert(h1.totalAllocation(8 * 64) == 8 + 8 * 64);