Skip to content

Commit

Permalink
Add other iteration commands to testing of signaling errors in sublev…
Browse files Browse the repository at this point in the history
…els.
  • Loading branch information
okamsn committed Dec 23, 2022
1 parent 6227b69 commit 6632411
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions tests/tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -939,11 +939,22 @@ prefix the items in LOOPY or ITER-BARE."
;;;; Iteration
;; Making sure iteration fails in sub-level
(defmacro test--iteration-sub-level ()
(let ((plain-cmds '( list list-ref array array-ref seq seq-ref cycle))
(let ((plain-cmds '( list list-ref
cons
array array-ref
seq seq-ref seq-index
cycle
iter
map map-ref
numbers numbers-down numbers-up))
(ing-cmds '( listing listing-ref
consing
arraying arraying-ref
sequencing sequencing-ref
cycling)))
sequencing sequencing-ref sequencing-index
cycling
iterating
mapping mapping-ref
numbering numbering-down numbering-up)))
`(progn
,@(cl-loop
for body in '(((if t (_cmd i '(1))) (finally-return t))
Expand Down

0 comments on commit 6632411

Please sign in to comment.