blob: 242909721c56e4b385fee715a066fb1ca41e8d59 [file] [log] [blame]
John Wangd8702f62019-10-31 10:06:35 +08001#include <vector>
2
3#include "libpldm/utils.h"
4
5#include <gtest/gtest.h>
6
7TEST(Crc32, CheckSumTest)
8{
9 const char* password = "123456789";
10 auto checksum = crc32(password, 9);
11 EXPECT_EQ(checksum, 0xcbf43926);
12}