[vlc-devel] [PATCH 2/3] list: add a comment in tests

Maxime ... mmeisson at outlook.fr
Fri Sep 20 15:20:39 CEST 2019


on the test which create a list with both append and prepend in order to test that
prepend inserts properly on the front of the list
---
 src/test/list.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/list.c b/src/test/list.c
index 583adc1f0d..25b1dcf162 100644
--- a/src/test/list.c
+++ b/src/test/list.c
@@ -87,6 +87,10 @@ int main (void)
     }
     assert(vlc_list_is_empty(&head));
 
+
+    /*
+     * Create a list from 10 to 30, inserting the 10 last element first
+     */
     for (int i = 20; i < 30; i++)
         vlc_list_append(make_elem(i), &head);
     for (int i = 19; i >= 10; i--)
-- 
2.17.1



More information about the vlc-devel mailing list