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 <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
