You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by al...@apache.org on 2019/06/28 19:56:47 UTC

[incubator-datasketches-cpp] branch unit_test_fix created (now 74a6934)

This is an automated email from the ASF dual-hosted git repository.

alsay pushed a change to branch unit_test_fix
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git.


      at 74a6934  added missing rewind

This branch includes the following new commits:

     new 74a6934  added missing rewind

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org


[incubator-datasketches-cpp] 01/01: added missing rewind

Posted by al...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch unit_test_fix
in repository https://gitbox.apache.org/repos/asf/incubator-datasketches-cpp.git

commit 74a69348cd886fc20b87baed9b86578ce1494f3a
Author: AlexanderSaydakov <Al...@users.noreply.github.com>
AuthorDate: Fri Jun 28 12:56:32 2019 -0700

    added missing rewind
---
 cpc/test/cpc_sketch_test.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpc/test/cpc_sketch_test.cpp b/cpc/test/cpc_sketch_test.cpp
index 2a19948..84390e7 100644
--- a/cpc/test/cpc_sketch_test.cpp
+++ b/cpc/test/cpc_sketch_test.cpp
@@ -282,6 +282,7 @@ class cpc_sketch_test: public CppUnit::TestFixture {
     CPPUNIT_ASSERT(sketch_ptr->validate());
 
     // incompatible seed
+    s.seekg(0); // rewind the stream to read the same sketch again
     CPPUNIT_ASSERT_THROW(cpc_sketch::deserialize(s), std::invalid_argument);
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org