Add _reverse for I-LIST

This commit is contained in:
Patrick Pelissier committed 2018-10-01 21:22:19 +02:00
1 parent 46c2e33096
commit 4f3dad4bea
2 files changed
+23

No files matched your search

+7
View File
@@ -174,6 +174,13 @@ static void test2(void)
n++;
}
assert (n == NUM);
ilist_tname_reverse(list1);
for M_EACH(item, list1, ILIST_OPLIST(ilist_tname)) {
n--;
assert (n == item->n);
}
assert (n == 0);
}
M_LET(list1, list2, ILIST_OPLIST(ilist_tname)) {
for(int i = 0; i < NUM; i++)