Make tests public. Rewrite most tests. Add tests.
[pintos-anon] / src / lib / kernel / list.c
index 1a1e24d42107390b0e4f70499792c814894eb50f..0b37f33dc9f70b7ec66952f77100b96c0f7585bc 100644 (file)
@@ -31,6 +31,9 @@
    elements allows us to do a little bit of checking on some
    operations, which can be valuable.) */
 
+static bool is_sorted (struct list_elem *a, struct list_elem *b,
+                       list_less_func *less, void *aux) UNUSED;
+
 /* Returns true if ELEM is a head, false otherwise. */
 static inline bool
 is_head (struct list_elem *elem)