Skip to content

Commit

Permalink
fix detrnd zero case
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Oct 24, 2024
1 parent 3c77ab9 commit 23054d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace
{
std::printf("Testing detrnd\n");

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

0 comments on commit 23054d7

Please sign in to comment.