mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #2828 from kushalsingh007/fix_errors
Tests: Fixing warnings in hash_string_module
This commit is contained in:
commit
d797b91a3c
@ -11,16 +11,15 @@
|
|||||||
|
|
||||||
static void test_hash_value(void)
|
static void test_hash_value(void)
|
||||||
{
|
{
|
||||||
TEST_ASSERT_EQUAL_INT(177621, hash_string("0"));
|
TEST_ASSERT_EQUAL_INT(177621, hash_string((unsigned char *)"0"));
|
||||||
TEST_ASSERT_EQUAL_INT(6555485335635392041, hash_string("0123456789abcde-"
|
TEST_ASSERT_EQUAL_INT(685012521, hash_string((unsigned char *)"0123456789ab"
|
||||||
"0123456789abcde-0123"
|
"cde-0123456789abcde-0123456789"
|
||||||
"456789abcde-01234567"
|
"abcde-0123456789abcde-"));
|
||||||
"89abcde-"));
|
TEST_ASSERT_EQUAL_INT(900068641, hash_string((unsigned char *)"Frank jagt "
|
||||||
TEST_ASSERT_EQUAL_INT(210674770391, hash_string("Frank jagt im komplett"
|
"im komplett verwahrlosten Taxi"
|
||||||
" verwahrlosten Taxi q"
|
" quer durch Bayern"));
|
||||||
"uer durch Bayern"));
|
TEST_ASSERT_EQUAL_INT(1857959484, hash_string((unsigned char *)"12A5B6cd_"));
|
||||||
TEST_ASSERT_EQUAL_INT(249811328611268156, hash_string("12A5B6cd_"));
|
TEST_ASSERT_EQUAL_INT(5381, hash_string((unsigned char *)""));
|
||||||
TEST_ASSERT_EQUAL_INT(5381, hash_string(""));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Test *tests_hash_string_tests(void)
|
Test *tests_hash_string_tests(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user