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

+2
View File
@@ -6,6 +6,7 @@
;;; earlier parameter.
;; TODO: Repeat WORD N times. N is optional and defaults to 2.
;; make-list builds a list of n copies (lists arrive in ch. 06).
(defun repeat-word (word n)
(make-list n :initial-element word))
@@ -22,5 +23,6 @@
(check-equal '("hi" "hi") (repeat-word "hi"))
(check-equal '("hi" "hi" "hi" "hi") (repeat-word "hi" 4))
(check-equal '(:width 2 :height 2 :depth 2) (make-box 2))
(check-equal '(:width 3 :height 3 :depth 3) (make-box 3))
(check-equal '(:width 2 :height 5 :depth 2) (make-box 2 :height 5))
(check-equal '(:width 2 :height 5 :depth 7) (make-box 2 :height 5 :depth 7))