Skip to content

Commit

Permalink
[Test] Fix tests of BitInputArchive when using native strings
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Dec 3, 2023
1 parent 42a7bc5 commit 78999dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/test_bitinputarchive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ void require_archive_tests( const BitArchiveReader& info, const SourceLocation&
/* Note: throughout this unit test we will use BitArchiveReader for testing BitInputArchive's specific methods. */

TEST_CASE( "BitInputArchive: Opening a non-existing archive should throw an exception" ) {
REQUIRE_THROWS( BitArchiveReader{ test::sevenzip_lib(), "non-existing.7z", BitFormat::SevenZip } );
REQUIRE_THROWS( BitArchiveReader{ test::sevenzip_lib(), BIT7Z_STRING( "non-existing.7z" ), BitFormat::SevenZip } );
REQUIRE_THROWS( BitArchiveReader{ test::sevenzip_lib(), buffer_t{}, BitFormat::SevenZip } );

fs::ifstream nonExistingStream{ "non-existing.7z" };
Expand Down

0 comments on commit 78999dc

Please sign in to comment.