diff --git a/tests/test_mapping.cpp b/tests/test_mapping.cpp index b480d4c..f7a3a53 100644 --- a/tests/test_mapping.cpp +++ b/tests/test_mapping.cpp @@ -152,7 +152,11 @@ TEST(mapping, OutOfRangeLandmarksAndDepthAreClamped) { } TEST(mapping, HoltFilterMatchesPrecomputedGoldenSequence) { - nui::mapping::HoltSmoothingFilter filter; + // Explicit params the golden sequence was computed with, so tuning the + // SmoothingParameters defaults (for cursor stability) does not break this + // test of the filter math. + nui::mapping::HoltSmoothingFilter filter( + nui::mapping::SmoothingParameters{0.6f, 0.4f, 0.4f, 0.04f, 0.07f}); const std::array raw_x{{0.0f, 0.02f, 0.04f, 0.10f, 0.12f}}; const std::array expected_x{{ 0.000000000f,