Fix 12 exercise defects from review wave 1 (scouts a+d)
This commit is contained in:
1 parent
3f753b2a8f
commit
2735c8dca5
18 files changed
+49
-5
No files matched your search
@@ -20,3 +20,4 @@
|
||||
|
||||
(check-equal "yum" (catch-empty '(a b)))
|
||||
(check-equal "soup" (catch-empty '()))
|
||||
(check-error (eat '()) 'empty-plate)
|
||||
@@ -21,3 +21,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")))
|
||||
Reference in new issue
Block a user