From 41f078a1452681ac148103aa7357f5a9082e4eca Mon Sep 17 00:00:00 2001 From: "Zezheng.Li" Date: Mon, 9 Oct 2023 17:57:21 +0800 Subject: [PATCH] fix --- src/struct_pack/tests/test_cross_platform.cpp | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/struct_pack/tests/test_cross_platform.cpp b/src/struct_pack/tests/test_cross_platform.cpp index 511bc22a4..3c679888a 100644 --- a/src/struct_pack/tests/test_cross_platform.cpp +++ b/src/struct_pack/tests/test_cross_platform.cpp @@ -23,28 +23,4 @@ TEST_CASE("testing deserialize other platform data without debug info") { REQUIRE(result.has_value()); auto object = create_complicated_object(); CHECK(result.value() == object); -} - -TEST_CASE("testing serialize other platform data") { - std::ifstream ifs("binary_data/test_cross_platform.dat"); - REQUIRE(ifs.is_open()); - std::string content(std::istreambuf_iterator{ifs}, - std::istreambuf_iterator{}); - auto object = create_complicated_object(); - auto buffer = - struct_pack::serialize(object); - CHECK(buffer == content); -} - -TEST_CASE("testing serialize other platform data") { - std::ifstream ifs("binary_data/test_cross_platform_without_debug_info.dat"); - REQUIRE(ifs.is_open()); - std::string content(std::istreambuf_iterator{ifs}, - std::istreambuf_iterator{}); - auto object = create_complicated_object(); - auto buffer = - struct_pack::serialize(object); - CHECK(buffer == content); } \ No newline at end of file