diff --git a/tests/ops_tests.cpp b/tests/ops_tests.cpp index c17e25572..d7f689e1e 100644 --- a/tests/ops_tests.cpp +++ b/tests/ops_tests.cpp @@ -511,6 +511,7 @@ TEST_CASE("test is inf") { CHECK_FALSE(isinf(x).item()); auto inf = std::numeric_limits::infinity(); + array y(inf); CHECK(isinf(y).item());