diff options
Diffstat (limited to 'tests/mock_queue.c')
-rw-r--r-- | tests/mock_queue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/mock_queue.c b/tests/mock_queue.c index b7f852c..493d397 100644 --- a/tests/mock_queue.c +++ b/tests/mock_queue.c @@ -6,7 +6,7 @@ const char* test_mock_enqueue_dequeue_int() { - lily_queue_t *q = lily_queue_create(); + lily_queue_t *q = lily_queue_create(); /* enqueue A259482, for no particular reason */ lily_enqueue(q, int, 2); @@ -21,7 +21,7 @@ const char* test_mock_enqueue_dequeue_int() { /* queue next value after already popping */ lily_enqueue(q, long, 1651377); - + if (n != 6) return "dequeued incorrect second value"; lily_dequeue(q, int, &n); if (n != 44) return "dequeued incorrect third value"; @@ -32,7 +32,7 @@ const char* test_mock_enqueue_dequeue_int() { if (m != 1651377) return "dequeued incorrect fifth value"; lily_queue_destroy(q); - + return 0; } |