Created
April 8, 2014 19:14
-
-
Save milinda/10174032 to your computer and use it in GitHub Desktop.
Testing the filter macro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(deftest defspout [] | |
(is ((streamit/filter test-spout [] [[] -> [:double]] | |
(init [max 1000]) | |
(work {:push 1} | |
(let [rand-double (* max (rand))] | |
(Thread/sleep 10) | |
(streamit/push [rand-double])))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment