Hi,

Am 04.02.2009 um 23:01 schrieb Laurent PETIT:

this should work for you :

   (binding [*out* (java.io.StringWriter.)]
      (printing-fn)
      (= (.toString *out*) "YES"))

There is also with-out-str:

(= "YES" (with-out-str (printing-fn)))

(And for the record: there is also a with-in-str.)

Sincerely
Meikel

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to