-main function reads arguments from
*in*, like this:
(defn -main [& args] (doseq [ln (line-seq (java.io.BufferedReader. *in*))] ; Do something... ))
I use my app basically like:
$ lein run < input.txt.
I would like to test this function but I don’t know how I would write a test case that simulates the stdin passing data to my
Is this the right approach to test this situation?