Skip to content

Commit 6443025

Browse files
committed
Change test assert condition
1 parent 9bef357 commit 6443025

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ario/ario.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ class ario
680680
for ( const auto& symbol : symbol_table ) {
681681
os << symbol.first << '\0'; // Null-terminated string
682682
}
683-
if ( os.tellp() % 2 == 1 ) {
683+
if ( os.tellp() % 2 != 0 ) {
684684
os << '\x0A';
685685
}
686686

tests/ARIOTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ TEST( ARIOTest, wrong_file_magic )
5353
TEST( ARIOTest, simple_text_load )
5454
{
5555
ario archive;
56-
ASSERT_EQ( archive.load( "ario/simple_text.a" ).what(), {} );
56+
ASSERT_EQ( archive.load( "ario/simple_text.a" ).what(), "No errors" );
5757
ASSERT_EQ( archive.members.size(), 6 );
5858
EXPECT_EQ( archive.members[0].name, "hello.c" );
5959
EXPECT_EQ( archive.members[0].size, 45 );

0 commit comments

Comments
 (0)