Skip to content

Commit e38aba0

Browse files
committed
Split complicated test assertion
1 parent 4193a6e commit e38aba0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/lib/asn1/tests/TestASN1.cpp

+7-3
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,13 @@ TEST(TestASN1, ASN1UniversalTime)
369369
ASN1UniversalTime result;
370370

371371
EXPECT_EQ(result.ImportFrom_ASN1_TIME_string(testStr), CHIP_NO_ERROR);
372-
EXPECT_TRUE(result.Year == testCase.asn1Time.Year && result.Month == testCase.asn1Time.Month &&
373-
result.Day == testCase.asn1Time.Day && result.Hour == testCase.asn1Time.Hour &&
374-
result.Minute == testCase.asn1Time.Minute && result.Second == testCase.asn1Time.Second);
372+
373+
EXPECT_EQ(result.Year, testCase.asn1Time.Year);
374+
EXPECT_EQ(result.Month, testCase.asn1Time.Month);
375+
EXPECT_EQ(result.Day, testCase.asn1Time.Day);
376+
EXPECT_EQ(result.Hour, testCase.asn1Time.Hour);
377+
EXPECT_EQ(result.Minute, testCase.asn1Time.Minute);
378+
EXPECT_EQ(result.Second, testCase.asn1Time.Second);
375379

376380
char buf[ASN1UniversalTime::kASN1TimeStringMaxLength];
377381
MutableCharSpan resultTimeStr(buf);

0 commit comments

Comments
 (0)