From 23054d78649f2bb4e3aa69b0080f9350bacfd4cc Mon Sep 17 00:00:00 2001 From: Alex Foster <123afoster@gmail.com> Date: Wed, 23 Oct 2024 23:51:26 -0700 Subject: [PATCH] fix detrnd zero case --- test/testutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testutils.cpp b/test/testutils.cpp index 58db0bfe..98bd7d8d 100644 --- a/test/testutils.cpp +++ b/test/testutils.cpp @@ -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); }