Fix 16 mid-chapter exercise defects (scouts mid1+mid2)

Verified: dev/verify.sh all 70 exercises green (broken fail, solved pass).
This commit is contained in:
venomade committed 2026-11-22 04:52:35 +00:00
1 parent 2735c8dca5
commit 6e2c382c78
24 files changed
+34 -15

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
;;;
;;; DEFSTRUCT defines a record type and generates, for free:
;;; a constructor (make-person), slot readers (person-name),
;;; and a predicate (personp).
;;; and a predicate (person-p).
(defstruct person
name
+2 -2
View File
@@ -19,9 +19,9 @@
;;; them unchanged.
;;; ------------------------------------------------------------------
(check (let ((c (make-counter)))
(check (let ((c (make-counter :value 9)))
(bump c)
(eql 1 (counter-value c))))
(eql 10 (counter-value c))))
(check (let ((c (make-counter :value 9)))
(reset-counter c)
(eql 0 (counter-value c))))