Re: testing println in clojure.test

2017-05-30 Thread Andy Fingerhut
The with-out-str macro should be able to do this for you. A few examples of use can be found on ClojureDocs here: https://clojuredocs.org/clojure.core/with-out-str You may find the Clojure cheat sheet useful for discovering things like this (at least for things the cheat sheet includes -- it doe

testing println in clojure.test

2017-05-30 Thread Kevin Kleinfelter
I've got a function which is supposed to println a computed value. How do I test whether it printed that value, when using clojure.test? Or, another way of asking the same question is how do I grab the output from println when testing a function with clojure.test? TIA -- You received this me