Skip to content

Evaluation might be too strict #2

@willmcpherson2

Description

@willmcpherson2

This test succeeds:

(is (= (? (lazy-seq (cons :a (lazy-seq (cons :b (lazy-seq (cons (throw (Exception. "evaluated!")) nil))))))
(lazy-seq (cons :x (lazy-seq (cons :y (lazy-seq (cons :z nil)))))) :ok)
nil))

This test fails:

;; Throws an exception. Can we be more lazy?
#_(is (= (? (lazy-seq (cons :a (lazy-seq (cons (throw (Exception. "evaluated!")) nil))))
(lazy-seq (cons :x (lazy-seq (cons :y nil)))) :ok)
nil)))

Can we be more lazy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions