John Wang | d8702f6 | 2019-10-31 10:06:35 +0800 | [diff] [blame] | 1 | #include <vector> |
2 | |||||
3 | #include "libpldm/utils.h" | ||||
4 | |||||
5 | #include <gtest/gtest.h> | ||||
6 | |||||
7 | TEST(Crc32, CheckSumTest) | ||||
8 | { | ||||
9 | const char* password = "123456789"; | ||||
10 | auto checksum = crc32(password, 9); | ||||
11 | EXPECT_EQ(checksum, 0xcbf43926); | ||||
12 | } |