Fix 12 exercise defects from review wave 1 (scouts a+d)

This commit is contained in:
venomade committed 2026-11-22 04:31:29 +00:00
1 parent 3f753b2a8f
commit 2735c8dca5
18 files changed
+49 -5

No files matched your search

+1
View File
@@ -24,3 +24,4 @@
(check-equal "yum" (catch-empty '(a b)))
(check-equal "soup" (catch-empty '()))
(check-error (eat '()) 'empty-plate)
+5
View File
@@ -31,3 +31,8 @@
(check-equal 1 (car-with-default '(1 2 3)))
(check-equal nil (car-with-default "not a list"))
(check-equal nil (car-with-default nil))
(check-equal nil
(handler-bind ((error (lambda (e)
(declare (ignore e))
(invoke-restart (find-restart 'use-nil)))))
(safe-car "not a list")))