[riot-notifications] [RIOT-OS/RIOT] core/clist: add special cardinality tests and matching unittest (#16330)

Kaspar Schleiser notifications at github.com
Wed Apr 14 15:42:40 CEST 2021


@kaspar030 commented on this pull request.



> @@ -34,6 +34,8 @@
  * clist_sort()         | O(NlogN)| sort list (stable)
  * clist_count()        | O(n)    | count the number of elements in a list
  * clist_is_empty()     | O(1)    | returns true if the list contains no elements
+ * clist_exactly_one()  | O(1)    | returns true if the list contains one element
+ * clist_more_than_one()| O(1)    | returns true if the list contains more then one nodes

```suggestion
 * clist_more_than_one()| O(1)    | returns true if the list contains more then one elements
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16330#pullrequestreview-635634372
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210414/958fc6a9/attachment.htm>


More information about the notifications mailing list