1 /* Copyright (c) 2010-2018 Dovecot authors, see the included COPYING file */ 2 3 #include "test-lib.h" 4 #include "crc32.h" 5 test_crc32(void)6void test_crc32(void) 7 { 8 const char str[] = "foo\0bar"; 9 10 test_begin("crc32"); 11 test_assert(crc32_str(str) == 0x8c736521); 12 test_assert(crc32_data(str, sizeof(str)) == 0x32c9723d); 13 test_end(); 14 } 15