Skip to content

Commit

Permalink
test tools randomfloat
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 31, 2024
1 parent d3c550a commit 5726e74
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/testutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ namespace
assert(i == 0 || i == 1 || i == 2);
}

void test_randomfloat()
{
std::printf("Testing randomfloat\n");

int i = randomfloat(3);
assert(i < 3);
}

void test_detrnd()
{
std::printf("Testing detrnd\n");
Expand Down Expand Up @@ -666,6 +674,7 @@ testing tools functionality\n\
test_min();
test_bitscan();
test_randomint();
test_randomfloat();
test_detrnd();
testpath();
testcpath();
Expand Down

0 comments on commit 5726e74

Please sign in to comment.