Created
December 25, 2012 21:40
-
-
Save Ikke/4375576 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void test_dll_dll_insert_before_insterts_item_before() { | |
| t_dll *dll = dll_init(); | |
| dll_append(dll, "test1"); | |
| dll_append(dll, "test3"); | |
| t_dll_element *element = DLL_TAIL(dll); | |
| dll_insert_before(dll, element, "test2"); | |
| CU_ASSERT_STRING_EQUAL(DLL_NEXT(DLL_HEAD(dll))->data, "test2"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment