You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by jm...@apache.org on 2022/04/26 07:17:23 UTC
[datasketches-cpp] 02/03: more test coverage
This is an automated email from the ASF dual-hosted git repository.
jmalkin pushed a commit to branch quantiles
in repository https://gitbox.apache.org/repos/asf/datasketches-cpp.git
commit 9e224d743b0557c7b65b00e682887441dc68dca9
Author: Jon Malkin <jm...@users.noreply.github.com>
AuthorDate: Mon Apr 25 23:59:42 2022 -0700
more test coverage
---
quantiles/test/quantiles_sketch_test.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/quantiles/test/quantiles_sketch_test.cpp b/quantiles/test/quantiles_sketch_test.cpp
index 1c8764e..619b059 100644
--- a/quantiles/test/quantiles_sketch_test.cpp
+++ b/quantiles/test/quantiles_sketch_test.cpp
@@ -738,7 +738,7 @@ TEST_CASE("quantiles sketch", "[quantiles_sketch]") {
REQUIRE_THROWS_AS(sketch.get_min_value(), std::runtime_error);
REQUIRE_THROWS_AS(sketch.get_max_value(), std::runtime_error);
- const int n = 1000;
+ const int n = 10000;
for (int i = 0; i < n; i++) sketch.update(i);
std::stringstream s(std::ios::in | std::ios::out | std::ios::binary);
@@ -803,11 +803,11 @@ TEST_CASE("quantiles sketch", "[quantiles_sketch]") {
REQUIRE_THROWS_AS(sketch1.get_max_value(), std::runtime_error);
REQUIRE(sketch1.get_serialized_size_bytes() == 8);
- const int n = 1000;
+ const int n = 10000;
for (int i = 0; i < n; i++) sketch1.update(std::to_string(i));
REQUIRE(sketch1.get_min_value() == std::string("0"));
- REQUIRE(sketch1.get_max_value() == std::string("999"));
+ REQUIRE(sketch1.get_max_value() == std::string("9999"));
auto bytes = sketch1.serialize();
REQUIRE(bytes.size() == sketch1.get_serialized_size_bytes());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org