Lumiera 0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
test-llist.c File Reference

C unit test to cover a linked list library implementation. More...

Go to the source code of this file.

Description

C unit test to cover a linked list library implementation.

See also
llist.h

Definition in file test-llist.c.

#include <nobug.h>
#include "lib/llist.h"
#include "lib/test/test.h"

Functions

TESTS_BEGIN TEST (basic)
 
 TEST (nodeinsert)
 
 TEST (predicates)
 
 TEST (unlink)
 
 TEST (whiles)
 
 TEST (relocate)
 

Function Documentation

◆ TEST() [1/6]

TESTS_BEGIN TEST ( basic  )

Definition at line 27 of file test-llist.c.

References LLIST_AUTO.

◆ TEST() [2/6]

TEST ( nodeinsert  )

Definition at line 38 of file test-llist.c.

References LLIST_AUTO.

◆ TEST() [3/6]

TEST ( predicates  )

Definition at line 59 of file test-llist.c.

References LLIST_AUTO, llist_insert_head, and llist_insert_tail.

◆ TEST() [4/6]

TEST ( unlink  )

◆ TEST() [5/6]

◆ TEST() [6/6]

TEST ( relocate  )

Definition at line 185 of file test-llist.c.

References llist_insert_head, and NULL.