Relax totalAllocation assertion for 32 bit

This commit is contained in:
Andrei Alexandrescu 2015-08-01 16:58:39 -04:00
parent 5c4f4cf20b
commit 58a19a64d8

View file

@ -845,11 +845,11 @@ unittest
testAllocateAll!(128 * 20)(13 * 128, 128); testAllocateAll!(128 * 20)(13 * 128, 128);
} }
// Test totakAllocation // Test totalAllocation
unittest unittest
{ {
BitmappedBlock!(8, 8, NullAllocator) h1; BitmappedBlock!(8, 8, NullAllocator) h1;
assert(h1.totalAllocation(1) == 16); assert(h1.totalAllocation(1) >= 8);
assert(h1.totalAllocation(64) == 8 + 8 * 8); assert(h1.totalAllocation(64) == 8 + 8 * 8);
//writeln(h1.totalAllocation(8 * 64)); //writeln(h1.totalAllocation(8 * 64));
assert(h1.totalAllocation(8 * 64) == 8 + 8 * 64); assert(h1.totalAllocation(8 * 64) == 8 + 8 * 64);