Skip to content

Commit

Permalink
Use EXPECT_STREQ
Browse files Browse the repository at this point in the history
  • Loading branch information
mbknust committed Apr 22, 2024
1 parent e4614d4 commit 3385054
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/core/tests/TestTLV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1715,8 +1715,7 @@ TEST_F(TestTLV, CheckOctetStringPrettyPrinter)

chip::TLV::Debug::Dump(reader, StringDumpWriter);

EXPECT_EQ(strlen(expectedPrint), strlen(gStringDumpWriterBuf));
EXPECT_EQ(strcmp(expectedPrint, gStringDumpWriterBuf), 0);
EXPECT_STREQ(expectedPrint, gStringDumpWriterBuf);
}

/**
Expand Down

0 comments on commit 3385054

Please sign in to comment.