Commits

Anonymous committed c836f24

add unit test for with-stringwriter macro

  • Participants
  • Parent commits 3c4b9cf

Comments (0)

Files changed (1)

File src/test/clj/org/bituf/test_clj_miscutil.clj

 
 
 (deftest test-pretty-printing
+  (testing "with-stringwriter"
+    (is (= "Hello World!" (with-stringwriter s
+                       (.append s "Hello World!")))))
   (testing "with-err-str"
     (is (= "Hello" (with-err-str (binding [*out* *err*] (print "Hello")))))
     (let [txt (with-err-str