Sandbox2: Check for substring in CRC4 test

PiperOrigin-RevId: 442793060
Change-Id: If2483e13a9bdab5803e949bc4b568caa9569a818
This commit is contained in:
Christian Blichmann 2022-04-19 06:15:04 -07:00 committed by Copybara-Service
parent 418c73b128
commit 456d9f341e

View File

@ -30,7 +30,7 @@ namespace {
using ::sapi::GetTestSourcePath;
using ::testing::Eq;
using ::testing::StrEq;
using ::testing::HasSubstr;
class CRC4Test : public ::testing::Test {
protected:
@ -51,7 +51,7 @@ TEST_F(CRC4Test, TestNormalOperation) {
int exit_code,
util::Communicate({path_, "-input", "ABCD"}, env_, &output));
EXPECT_THAT(output, StrEq("0x44434241\n"));
EXPECT_THAT(output, HasSubstr("0x44434241\n"));
EXPECT_THAT(exit_code, Eq(0));
}