diff --git a/src/tests/test_sketches.cpp b/src/tests/test_sketches.cpp index 4f89f7714..e7d2e5c37 100644 --- a/src/tests/test_sketches.cpp +++ b/src/tests/test_sketches.cpp @@ -91,13 +91,15 @@ TEST_CASE("Quantiles", "[kll]") const double fractions[3]{0.0, 0.5, 1.0}; // inclusive (default) - auto quantiles = sketch.get_quantiles(fractions, 3); + auto quantiles = std::vector{sketch.get_quantile(fractions[0]), + sketch.get_quantile(fractions[1]), sketch.get_quantile(fractions[2])}; CHECK(3ul == quantiles.size()); CHECK(0.0f == quantiles[0]); CHECK(static_cast((n - 1) / 2) == quantiles[1]); CHECK(static_cast(n - 1) == quantiles[2]); // exclusive - quantiles = sketch.get_quantiles(fractions, 3, false); + quantiles = std::vector{sketch.get_quantile(fractions[0], false), + sketch.get_quantile(fractions[1], false), sketch.get_quantile(fractions[2], false)}; CHECK(3ul == quantiles.size()); CHECK(0.0f == quantiles[0]); CHECK(static_cast(n) / 2 == quantiles[1]);