diff --git a/tests/packages.scm b/tests/packages.scm index 596a2d1f83..cbd0503733 100644 --- a/tests/packages.scm +++ b/tests/packages.scm @@ -1326,6 +1326,15 @@ result)) '())))))) + (define (find-duplicates l) + (match l + (() '()) + ((head . tail) + (if (member head tail) + (cons head (find-duplicates tail)) + (find-duplicates tail))))) + + (pk (find-duplicates from-cache)) (and (equal? (delete-duplicates from-cache) from-cache) (lset= equal? no-cache from-cache))))