Skip to content

Commit

Permalink
Fix some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
okamsn committed Aug 6, 2023
1 parent 6ce07f8 commit 7cbf145
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions tests/tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -4741,12 +4741,25 @@ Not multiple of 3: 7"
(while (< i 3))
(collect i)))))))

(loopy-deftest while
:result '(1 2)
:body ((list i '(1 2 3 4 5 6))
(while (< i 3))
(collect i))
:loopy t
:iter-keyword (list while collect)
:iter-bare nil)

;;;;; Until
(ert-deftest until ()
(should (equal '(1 2 3)
(eval (quote (loopy (list i '(1 2 3 4 5 6))
(until (> i 3))
(collect i)))))))
(loopy-deftest until
:result '(1 2 3)
:body ((list i '(1 2 3 4 5 6))
(until (> i 3))
(collect i))
:loopy t
:iter-keyword (list until collect)
:iter-bare nil)


;;;;; Always
(loopy-deftest always-pass
Expand Down

0 comments on commit 7cbf145

Please sign in to comment.