[tests] fixed format strings

This commit is contained in:
akallabeth 2023-06-29 13:55:01 +02:00 committed by akallabeth
parent 7397fa4ae5
commit 0d3b2dd3c3
2 changed files with 8 additions and 8 deletions

View File

@ -22,7 +22,7 @@ int TestLinkedList(int argc, char* argv[])
if (count != 3)
{
printf("LinkedList_Count: expected 3, actual: %d\n", count);
printf("LinkedList_Count: expected 3, actual: %" PRIuz "\n", count);
return -1;
}
@ -41,7 +41,7 @@ int TestLinkedList(int argc, char* argv[])
if (count != 1)
{
printf("LinkedList_Count: expected 1, actual: %d\n", count);
printf("LinkedList_Count: expected 1, actual: %" PRIuz "\n", count);
return -1;
}
@ -60,7 +60,7 @@ int TestLinkedList(int argc, char* argv[])
if (count != 0)
{
printf("LinkedList_Count: expected 0, actual: %d\n", count);
printf("LinkedList_Count: expected 0, actual: %" PRIuz "\n", count);
return -1;
}
@ -74,7 +74,7 @@ int TestLinkedList(int argc, char* argv[])
if (count != 3)
{
printf("LinkedList_Count: expected 3, actual: %d\n", count);
printf("LinkedList_Count: expected 3, actual: %" PRIuz "\n", count);
return -1;
}

View File

@ -137,8 +137,8 @@ int TestListDictionary(int argc, char* argv[])
count = ListDictionary_Count(list);
if (strncmp(value, val1, 4) || count != 1)
{
printf("ListDictionary_Remove_Head: Expected : %s, Actual: %s Count: %d\n", val1, value,
count);
printf("ListDictionary_Remove_Head: Expected : %s, Actual: %s Count: %" PRIuz "\n", val1,
value, count);
return -1;
}
@ -146,8 +146,8 @@ int TestListDictionary(int argc, char* argv[])
count = ListDictionary_Count(list);
if (strncmp(value, val3, 4) || count != 0)
{
printf("ListDictionary_Remove_Head: Expected : %s, Actual: %s Count: %d\n", val3, value,
count);
printf("ListDictionary_Remove_Head: Expected : %s, Actual: %s Count: %" PRIuz "\n", val3,
value, count);
return -1;
}