diff --git a/tests/src/isometric/unary/arithmetic_vector_helpers.cpp b/tests/src/isometric/unary/arithmetic_vector_helpers.cpp index fe6dc84c..f1511391 100644 --- a/tests/src/isometric/unary/arithmetic_vector_helpers.cpp +++ b/tests/src/isometric/unary/arithmetic_vector_helpers.cpp @@ -1093,11 +1093,11 @@ TEST_P(DelayedUnaryIsometricModuloVectorZeroedTest, AllZero) { auto copy = simulated; if (right) { for (auto& x : copy) { - x = std::fmod(x, 0.0); + x = careful_modulo(x, 0.0); } } else { for (auto& x : copy) { - x = std::fmod(0.0, x); + x = careful_modulo(0.0, x); } } tatami::DenseRowMatrix ref(nrow, ncol, std::move(copy)); @@ -1152,9 +1152,9 @@ TEST_P(DelayedUnaryIsometricModuloVectorNewTypeTest, Basic) { auto offset = r * ncol + c; auto val = vec[row ? r : c]; if (right) { - frefvec[offset] = std::fmod(simulated[offset], val); + frefvec[offset] = careful_modulo(simulated[offset], val); } else { - frefvec[offset] = std::fmod(val, simulated[offset]); + frefvec[offset] = careful_modulo(val, simulated[offset]); } }