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 41f078a commit cd8cb85
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/struct_pack/tests/test_cross_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ using namespace doctest;

TEST_CASE("testing deserialize other platform data") {
std::ifstream ifs("binary_data/test_cross_platform.dat");
if (!ifs.is_open()) {
ifs.open("src/struct_pack/tests/binary_data/test_cross_platform.dat");
}
REQUIRE(ifs.is_open());
auto result = struct_pack::deserialize<complicated_object>(ifs);
REQUIRE(result.has_value());
Expand All @@ -18,6 +21,11 @@ TEST_CASE("testing deserialize other platform data") {

TEST_CASE("testing deserialize other platform data without debug info") {
std::ifstream ifs("binary_data/test_cross_platform_without_debug_info.dat");
if (!ifs.is_open()) {
ifs.open(
"src/struct_pack/tests/binary_data/"
"test_cross_platform_without_debug_info.dat");
}
REQUIRE(ifs.is_open());
auto result = struct_pack::deserialize<complicated_object>(ifs);
REQUIRE(result.has_value());
Expand Down

0 comments on commit cd8cb85

Please sign in to comment.