1
0
Fork 0

Fixed a bug in queue tests, queue is now tested and working.

This commit is contained in:
wael 2022-01-05 18:06:50 +02:00
parent 48c240315f
commit 269259adb2
No known key found for this signature in database
GPG Key ID: C0A5FBF4558963D4
1 changed files with 2 additions and 2 deletions

View File

@ -176,8 +176,8 @@ int test_serialization() {
}
/* Check the values. */
for (i = 0; i < SERIALIZATION_TEST_QUEUE_LENGTH; i++) {
if (array[i] != i) {
for (i = 0; i < SERIALIZATION_TEST_QUEUE_LENGTH ; i++) {
if (array[i] != (SERIALIZATION_TEST_QUEUE_LENGTH - 1 - i)) {
/* Clear the queue. */
clear_queue_data(&queue, NULL);
/* Free the array. */