- iterator for linked list implemented
- first test for iterator written - linked list values capsulated into private struct
This commit is contained in:
@@ -36,9 +36,27 @@
|
||||
*/
|
||||
void test_linked_list(tester_t *tester);
|
||||
|
||||
/**
|
||||
* @brief Test function for the type linked_list_t and its forward iterator
|
||||
*
|
||||
* Performs different kinds of assertions to check the functionality
|
||||
* of the linked_list_t and its iterator in a Single-Threaded environment.
|
||||
*
|
||||
* @warning To be usable in multi-threaded software
|
||||
* this list has to get protected with locks.
|
||||
*
|
||||
* @param tester tester object
|
||||
*/
|
||||
void test_linked_list_forward_iterator(tester_t *tester);
|
||||
|
||||
/**
|
||||
* Test for linked_list_t
|
||||
*/
|
||||
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"};
|
||||
|
||||
#endif /*LINKED_LIST_TEST_H_*/
|
||||
|
||||
Reference in New Issue
Block a user