mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Relax totalAllocation assertion for 32 bit
This commit is contained in:
parent
5c4f4cf20b
commit
58a19a64d8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue