1 Commits

Author SHA1 Message Date
stdranges
30af98df8c Update SegmentedPoolTests.cs
fix: updated test comments
2025-11-24 20:30:49 +00:00

View File

@@ -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);