Compare commits
1 Commits
feature/ad
...
fix/update
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
30af98df8c |
@@ -481,7 +481,7 @@ namespace UnmanagedMMUTests
|
|||||||
public void TrimWhenFreeSegmentCountLessThanMinSegmentsDoesNothing()
|
public void TrimWhenFreeSegmentCountLessThanMinSegmentsDoesNothing()
|
||||||
{
|
{
|
||||||
|
|
||||||
nuint segmentSize = 1024;
|
nuint segmentSize = 1024; // 1 KiB for the test
|
||||||
int initialSegments = 32;
|
int initialSegments = 32;
|
||||||
|
|
||||||
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
|
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
|
||||||
@@ -505,7 +505,7 @@ namespace UnmanagedMMUTests
|
|||||||
public void TrimWhenFreeSegmentGreaterThanMinSegmentsTrimsFreeSegmentsToNewSize()
|
public void TrimWhenFreeSegmentGreaterThanMinSegmentsTrimsFreeSegmentsToNewSize()
|
||||||
{
|
{
|
||||||
|
|
||||||
nuint segmentSize = 1024;
|
nuint segmentSize = 1024; // 1 KiB for the test
|
||||||
int initialSegments = 32;
|
int initialSegments = 32;
|
||||||
|
|
||||||
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
|
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
|
||||||
@@ -553,7 +553,7 @@ namespace UnmanagedMMUTests
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void ResetNoTrimClearsAllActivateSegments()
|
public void ResetNoTrimClearsAllActivateSegments()
|
||||||
{
|
{
|
||||||
nuint segmentSize = 300; // 1 KiB for the test
|
nuint segmentSize = 300; // 300 bytes for the test
|
||||||
int initialSegments = 8;
|
int initialSegments = 8;
|
||||||
|
|
||||||
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
|
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
|
||||||
@@ -596,7 +596,7 @@ namespace UnmanagedMMUTests
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void ResetWithTrimClearsAllActivateSegments()
|
public void ResetWithTrimClearsAllActivateSegments()
|
||||||
{
|
{
|
||||||
nuint segmentSize = 300; // 1 KiB for the test
|
nuint segmentSize = 300; // 300 bytes for the test
|
||||||
int initialSegments = 64;
|
int initialSegments = 64;
|
||||||
|
|
||||||
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
|
SegmentedPool pool = new SegmentedPool(segmentSize, initialSegments);
|
||||||
|
|||||||
Reference in New Issue
Block a user