Skip to content

Commit

Permalink
test: check that pfor actually is eager
Browse files Browse the repository at this point in the history
  • Loading branch information
dancek authored and rschmukler committed Dec 11, 2023
1 parent a0b99d3 commit 088a5c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/tapestry/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@
(deftest pfor-test
(testing "works"
(is (= '(1 2 3)
(sut/pfor [x (range 3)] (inc x))))))
(sut/pfor [x (range 3)] (inc x)))))
(testing "is eager"
(is (realized? (sut/pfor [x (range 3)] (inc x))))))

(deftest interrupt-test
(let [f (sut/fiber (Thread/sleep 10000))]
Expand Down

0 comments on commit 088a5c0

Please sign in to comment.