Skip to content

Commit af44362

Browse files
committed
Fix count-min sketches test snapshots should use binary mode
Signed-off-by: tison <wander4096@gmail.com>
1 parent 0bab259 commit af44362

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

count/test/count_min_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ TEST_CASE("CountMin sketch: serialize-deserialize empty", "[cm_sketch]") {
215215
for (auto di: d) {
216216
REQUIRE(di == 0);
217217
}
218-
std::ofstream os("count_min-empty.bin");
218+
std::ofstream os("count_min-empty.bin", std::ios::binary);
219219
c.serialize(os);
220220
}
221221

@@ -243,7 +243,7 @@ TEST_CASE("CountMin sketch: serialize-deserialize non-empty", "[cm_sketch]") {
243243
++d_it;
244244
}
245245

246-
std::ofstream os("count_min-non-empty.bin");
246+
std::ofstream os("count_min-non-empty.bin", std::ios::binary);
247247
c.serialize(os);
248248
}
249249

0 commit comments

Comments
 (0)