Commit 5b61be1e authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2512] Update assert() to a gtest ASSERT

parent 8c77a05c
......@@ -145,7 +145,7 @@ TEST_F(CharStringDataTest, charStringDataToString) {
for (const TestData* cur = conversion_data; cur->data != NULL; ++cur) {
uint8_t idata[32];
size_t length = std::strlen(cur->data);
assert(sizeof(idata) >= length);
ASSERT_LT(length, sizeof(idata));
std::memcpy(idata, cur->data, length);
const CharStringData test_data(idata, idata + length);
EXPECT_EQ(cur->expected, charStringDataToString(test_data));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment