From eced60545a8fd07335b3e6fddac020dc78c705ba Mon Sep 17 00:00:00 2001 From: Jonathan Thomas Date: Fri, 13 May 2022 14:55:58 -0500 Subject: [PATCH] Update CVTracker unit test, since we've rounded bounding coordinates, we need to update the expected value in our unit test. Seems close enough to be a rounding error onw. --- tests/CVTracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CVTracker.cpp b/tests/CVTracker.cpp index c5b014bc..e485d15f 100644 --- a/tests/CVTracker.cpp +++ b/tests/CVTracker.cpp @@ -102,7 +102,7 @@ TEST_CASE( "Track_Video", "[libopenshot][opencv][tracker]" ) // Compare if tracked data is equal to pre-tested ones CHECK(x == Approx(256).margin(1)); - CHECK(y == Approx(134).margin(1)); + CHECK(y == Approx(132).margin(1)); CHECK(width == Approx(180).margin(1)); CHECK(height == Approx(166).margin(2)); }