Skip to content

Commit

Permalink
test tools bitscan()
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 30, 2024
1 parent c738357 commit d2954fb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/testutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ namespace
{
constexpr float tolerance = 0.001;

void test_bitscan()
{
std::printf("Testing bitscan\n");

assert(BITSCAN(0) == -1);
assert(BITSCAN(1) == 0);
assert(BITSCAN(128) == 7);
}

void test_detrnd()
{
std::printf("Testing detrnd\n");
Expand Down Expand Up @@ -609,6 +618,7 @@ testing tools functionality\n\
===============================================================\n"
);

test_bitscan();
test_detrnd();
testpath();
testcpath();
Expand Down

0 comments on commit d2954fb

Please sign in to comment.