Skip to content

Commit

Permalink
test detrnd
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 24, 2024
1 parent 1f14695 commit 3c77ab9
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_detrnd()
{
std::printf("Testing detrnd\n");

assert(std::abs(detrnd(0, 8) - 6) < tolerance);
assert(std::abs(detrnd(1, 8) - 6) < tolerance);
assert(std::abs(detrnd(2, 8) - 4) < tolerance);
}

void testpath()
{
static std::string_view test_cases[][2] =
Expand Down Expand Up @@ -523,6 +532,7 @@ testing tools functionality\n\
===============================================================\n"
);

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

0 comments on commit 3c77ab9

Please sign in to comment.