Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
poor-circle committed Oct 9, 2023
1 parent 14d8e59 commit 41f078a
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/struct_pack/tests/test_cross_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<char>{ifs},
std::istreambuf_iterator<char>{});
auto object = create_complicated_object();
auto buffer =
struct_pack::serialize<std::string,
struct_pack::type_info_config::enable>(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<char>{ifs},
std::istreambuf_iterator<char>{});
auto object = create_complicated_object();
auto buffer =
struct_pack::serialize<std::string,
struct_pack::type_info_config::disable>(object);
CHECK(buffer == content);
}

0 comments on commit 41f078a

Please sign in to comment.