-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unit tests, target net6.0 and net8.0, fixed size_t types
- Loading branch information
Showing
9 changed files
with
542 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Xunit; | ||
|
||
namespace Roaring.Test.Roaring32; | ||
|
||
public class ConstructorTests | ||
{ | ||
[Fact] | ||
public void Ctor_Default_CreatesBitmapWithZeroCapacity() | ||
{ | ||
// Arrange | ||
using var uut = new Roaring32Bitmap(); | ||
|
||
// Act | ||
var actual = uut.SerializedBytes; | ||
|
||
// Assert | ||
Assert.True(actual > 0); | ||
} | ||
|
||
[Fact] | ||
public void Ctor_WithCapacity_CreatesBitmapWithPriviedCapacity() | ||
{ | ||
// Arrange | ||
using var uut = new Roaring32Bitmap(1000); | ||
|
||
// Act | ||
var actual = uut.SerializedBytes; | ||
|
||
// Assert | ||
Assert.True(actual > 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.