AlexanderSaydakov commented on code in PR #438:
URL: https://github.com/apache/datasketches-cpp/pull/438#discussion_r1717828800


##########
filters/test/bloom_filter_deserialize_from_java_test.cpp:
##########
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#include <catch2/catch.hpp>
+#include <fstream>
+
+#include "bloom_filter.hpp"
+
+namespace datasketches {
+
+// assume the binary sketches for this test have been generated by 
datasketches-java code
+// in the subdirectory called "java" in the root directory of this project
+static std::string testBinaryInputPath = std::string(TEST_BINARY_INPUT_PATH) + 
"../../java/";
+
+TEST_CASE("bloom_filter", "[serde_compat]") {
+  const uint64_t n_arr[] = {0, 10000, 2000000, 30000000};
+  const double h_arr[] = {3, 5};
+  for (const uint64_t n: n_arr) {
+    for (const uint16_t num_hashes: h_arr) {
+      std::ifstream is;
+      is.exceptions(std::ios::failbit | std::ios::badbit);
+      is.open(testBinaryInputPath + "bf_n" + std::to_string(n) + "_h" + 
std::to_string(num_hashes) + "_cpp.sk", std::ios::binary);

Review Comment:
   seems like should be "_java.sk"



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to