|
|
@ -1,8 +1,7 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
** Copyright (C) 2018 Wang Yaofu
|
|
|
|
** The crc unit test is licensed under the Apache License, Version 2.0, and a copy of the license is included in this file.
|
|
|
|
** All rights reserved.
|
|
|
|
|
|
|
|
**
|
|
|
|
**
|
|
|
|
**Author:Wang Yaofu voipman@qq.com
|
|
|
|
**Author:Wang Yaofu 2018 voipman@qq.com
|
|
|
|
**Description: The unit test file of crc.
|
|
|
|
**Description: The unit test file of crc.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
@ -34,4 +33,4 @@ TEST(CRC64Test, BasicTest)
|
|
|
|
|
|
|
|
|
|
|
|
uint64_t expect = 16845390139448941002L;
|
|
|
|
uint64_t expect = 16845390139448941002L;
|
|
|
|
EXPECT_EQ(crc64(inData, 9), expect);
|
|
|
|
EXPECT_EQ(crc64(inData, 9), expect);
|
|
|
|
}
|
|
|
|
}
|
|
|
|