- linked list now allows inserting and deleting in the middle of the
list - test for this features written
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
void test_linked_list(tester_t *tester);
|
||||
|
||||
/**
|
||||
* @brief Test function for the type linked_list_t and its forward iterator
|
||||
* @brief Test function for the type linked_list_t and its iterator
|
||||
*
|
||||
* Performs different kinds of assertions to check the functionality
|
||||
* of the linked_list_t and its iterator in a Single-Threaded environment.
|
||||
@@ -47,7 +47,21 @@ void test_linked_list(tester_t *tester);
|
||||
*
|
||||
* @param tester tester object
|
||||
*/
|
||||
void test_linked_list_forward_iterator(tester_t *tester);
|
||||
void test_linked_list_iterator(tester_t *tester);
|
||||
|
||||
/**
|
||||
* @brief Test function for the type linked_list_t and its insert and remove
|
||||
* functions
|
||||
*
|
||||
* Performs different kinds of assertions to check the functionality
|
||||
* of the linked_list_t and its insert and remove functions
|
||||
*
|
||||
* @warning To be usable in multi-threaded software
|
||||
* this list has to get protected with locks.
|
||||
*
|
||||
* @param tester tester object
|
||||
*/
|
||||
void test_linked_list_insert_and_remove(tester_t *tester);
|
||||
|
||||
/**
|
||||
* Test for linked_list_t
|
||||
@@ -57,6 +71,12 @@ test_t linked_list_test = {test_linked_list,"Linked List"};
|
||||
/**
|
||||
* Test for linked_list_t with iterator
|
||||
*/
|
||||
test_t linked_list_forward_iterator_test = {test_linked_list_forward_iterator,"Linked List Forward Iterator"};
|
||||
test_t linked_list_iterator_test = {test_linked_list_iterator,"Linked List Iterator"};
|
||||
|
||||
/**
|
||||
* Test for linked_list_t insert and remove
|
||||
*/
|
||||
test_t linked_list_insert_and_remove_test = {test_linked_list_insert_and_remove,"Linked List Insert and remove"};
|
||||
|
||||
|
||||
#endif /*LINKED_LIST_TEST_H_*/
|
||||
|
||||
Reference in New Issue
Block a user