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 2023/04/22 20:58:43 UTC
[datasketches-cpp] 01/01: update integration test with density and count_min
This is an automated email from the ASF dual-hosted git repository.
jmalkin pushed a commit to branch integration_update
in repository https://gitbox.apache.org/repos/asf/datasketches-cpp.git
commit 73ac3b1442be2fc524e712bf848591546d07176b
Author: Jon <jm...@apache.org>
AuthorDate: Sat Apr 22 13:58:30 2023 -0700
update integration test with density and count_min
---
common/test/CMakeLists.txt | 2 +-
common/test/integration_test.cpp | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/common/test/CMakeLists.txt b/common/test/CMakeLists.txt
index 3d2c8c8..1927d26 100644
--- a/common/test/CMakeLists.txt
+++ b/common/test/CMakeLists.txt
@@ -74,7 +74,7 @@ target_sources(common_test
# now the integration test part
add_executable(integration_test)
-target_link_libraries(integration_test cpc fi hll kll req sampling theta tuple common_test_lib)
+target_link_libraries(integration_test count cpc density fi hll kll req sampling theta tuple common_test_lib)
set_target_properties(integration_test PROPERTIES
CXX_STANDARD 11
diff --git a/common/test/integration_test.cpp b/common/test/integration_test.cpp
index 1e01bd6..c734b93 100644
--- a/common/test/integration_test.cpp
+++ b/common/test/integration_test.cpp
@@ -19,8 +19,10 @@
#include <catch2/catch.hpp>
+#include "count_min.hpp"
#include "cpc_sketch.hpp"
#include "cpc_union.hpp"
+#include "density_sketch.hpp"
#include "frequent_items_sketch.hpp"
#include "hll.hpp"
#include "kll_sketch.hpp"
@@ -48,9 +50,13 @@ struct subtracting_intersection_policy {
using tuple_intersection_float = tuple_intersection<float, subtracting_intersection_policy<float>>;
TEST_CASE("integration: declare all sketches", "[integration]") {
+ count_min_sketch<double> cm(5, 128);
+
cpc_sketch cpc(12);
cpc_union cpc_u(12);
+ density_sketch<double> ds(32, 3);
+
frequent_items_sketch<std::string> fi(100);
hll_sketch hll(13);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org