Skip to content

Commit

Permalink
Remove duplicate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Nov 18, 2023
1 parent 4dc7d75 commit 5546735
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tests/src/test_bitarchivereader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,18 +349,7 @@ TEMPLATE_TEST_CASE( "BitArchiveReader: Reading header-encrypted archives",
REQUIRE( BitArchiveReader::isEncrypted( test::sevenzip_lib(), inputArchive, testArchive.format() ) );
}


SECTION( "Opening the archive with no password should throw an exception" ) {
REQUIRE_THROWS( BitArchiveReader( test::sevenzip_lib(), inputArchive, testArchive.format() ) );
}


SECTION( "Opening the archive with a wrong password should throw an exception" ) {
REQUIRE_THROWS( BitArchiveReader( test::sevenzip_lib(), inputArchive, testArchive.format(),
BIT7Z_STRING( "wrong_password" ) ) );
}

SECTION( "Opening the archive with the correct password should pass the tests" ) {
SECTION( "Opening the archive with the correct password should allow reading the archive metadata" ) {
const BitArchiveReader info( test::sevenzip_lib(), inputArchive, testArchive.format(), password );
REQUIRE( info.hasEncryptedItems() );
REQUIRE( info.isEncrypted() );
Expand Down

0 comments on commit 5546735

Please sign in to comment.