From 2e72f5b1de5d9391c8fd2809d0c8cd2a789a3524 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Tue, 22 Sep 2026 09:31:13 +0300 Subject: [PATCH] Update TExpr inplace check to handle float arithmetics optimizations. --- modules/core/test/test_arithm_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/test/test_arithm_expr.cpp b/modules/core/test/test_arithm_expr.cpp index d638964f16..4b2ef3f1ca 100644 --- a/modules/core/test/test_arithm_expr.cpp +++ b/modules/core/test/test_arithm_expr.cpp @@ -464,7 +464,7 @@ TEST(Core_TExpr, math_inplace) Mat ref = expr1("sqrt({0})", { a }); std::vector out{ a }; // preallocated == input => in-place cv::texpr("sqrt({0})", std::vector{ a }, out); - EXPECT_EQ(0, cvtest::norm(out[0], ref, NORM_INF)); + EXPECT_LE(cvtest::norm(out[0], ref, NORM_INF), FLT_EPSILON); } // ------------------------------------------------------------------------------------- select