Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dvsku committed Aug 18, 2024
1 parent b8d3295 commit c588f40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/v1/test_packing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TEST(packing, v1_packing) {

auto r1 = evp.pack(input, output);

EXPECT_TRUE(r1.status == evp_result_status::ok);
EXPECT_TRUE(r1);
EXPECT_TRUE(compare_files(output, valid));

std::remove(output.c_str());
Expand Down
8 changes: 4 additions & 4 deletions tests/v1/test_unpacking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ TEST(unpacking, v1_unpacking) {

auto r1 = evp.unpack(input, output);

ASSERT_TRUE(r1.status == evp_result_status::ok);
ASSERT_TRUE(compare_files(output_file, valid));
EXPECT_TRUE(r1);
EXPECT_TRUE(compare_files(output_file, valid));

std::filesystem::remove_all(output);
}
Expand All @@ -62,7 +62,7 @@ TEST(unpacking, v1_get_file) {
std::vector<uint8_t> buffer;

auto r1 = evp.get_file(input, "text_1.txt", buffer);
ASSERT_TRUE(r1.status == evp_result_status::ok);
ASSERT_TRUE(r1);

std::ifstream stream(valid, std::ios::in | std::ios::binary);
ASSERT_TRUE(stream.is_open());
Expand All @@ -80,7 +80,7 @@ TEST(unpacking, v1_get_file_stream) {
std::stringstream ss;

auto r1 = evp.get_file(input, "text_1.txt", ss);
ASSERT_TRUE(r1.status == evp_result_status::ok);
ASSERT_TRUE(r1);

std::ifstream stream(valid, std::ios::in | std::ios::binary);
ASSERT_TRUE(stream.is_open());
Expand Down

0 comments on commit c588f40

Please sign in to comment.