Skip to content

Commit

Permalink
added unit test for into-iter bug i1198
Browse files Browse the repository at this point in the history
  • Loading branch information
YarinHeffes authored and stylewarning committed Oct 18, 2024
1 parent 52c1ac3 commit 0697a29
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/runtime-tests.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,18 @@
(define-test test-transparent-wrapper ()
(is (== (make-list "x")
(map .inner (make-list (TransparentWrapper "x"))))))

;; Test iter:into-iter (see i1198)

(coalton-toplevel
(define (gh-974)
(iter:into-iter iter:Empty))
(define (gh-975)
(iter:into-iter Nil))
(define (gh-976)
(iter:into-iter (iter:into-iter iter:Empty))))

(define-test test-into-iter-iter-empty ()
(is (none? (iter:next! (gh-974))))
(is (none? (iter:next! (gh-975))))
(is (none? (iter:next! (gh-976)))))

0 comments on commit 0697a29

Please sign in to comment.