Skip to content

Commit 0884586

Browse files
authored
rebase CRC32DATA32VALUE (awslabs#87)
1 parent aac442a commit 0884586

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/crc_test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ static const uint32_t KNOWN_CRC32C_32_ZEROES = 0x8A9136AA;
1313

1414
static const uint8_t DATA_32_VALUES[32] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
1515
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
16+
static const uint32_t KNOWN_CRC32_32_VALUES = 0x91267E8A;
1617
static const uint32_t KNOWN_CRC32C_32_VALUES = 0x46DD794E;
1718

1819
static const uint8_t TEST_VECTOR[] = {'1', '2', '3', '4', '5', '6', '7', '8', '9'};
@@ -56,6 +57,7 @@ static int s_test_known_crc(
5657
static int s_test_known_crc32(const char *func_name, crc_fn *func) {
5758
int res = 0;
5859
res |= s_test_known_crc(func_name, func, DATA_NAME(DATA_32_ZEROS), KNOWN_CRC32_32_ZEROES);
60+
res |= s_test_known_crc(func_name, func, DATA_NAME(DATA_32_VALUES), KNOWN_CRC32_32_VALUES);
5961
res |= s_test_known_crc(func_name, func, DATA_NAME(TEST_VECTOR), KNOWN_CRC32_TEST_VECTOR);
6062
return res;
6163
}

0 commit comments

Comments
 (0)