From c0597366ad8a5a572e75fcc45211b932c83b8766 Mon Sep 17 00:00:00 2001 From: Alan Malloy Date: Wed, 23 Nov 2011 10:46:27 -0800 Subject: [PATCH] Add a test for namespace-awareness as requested in #2. This test fails, but I'm not sure if that's because the code is wrong or because I don't totally understand XML namespaces - at least it looks like the code is trying to be namespace-aware. @chouser, can you take a look? --- .../src/test/clojure/clojure/data/xml/test_emit.clj | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/xml/src/test/clojure/clojure/data/xml/test_emit.clj b/modules/xml/src/test/clojure/clojure/data/xml/test_emit.clj index 5f5aee1..0305b92 100644 --- a/modules/xml/src/test/clojure/clojure/data/xml/test_emit.clj +++ b/modules/xml/src/test/clojure/clojure/data/xml/test_emit.clj @@ -35,6 +35,17 @@ "")] (is (= expect (with-out-str (xml/emit deep-tree)))))) +(deftest namespaced + (is (= (str "" + "" + "" + "") + (with-out-str + (xml/emit (element :body + {:xmlns/api "http://some.uri.com/location"} + (element :api/method + {:args "" :ret "int"}))))))) + (deftest mixed-quotes (is (= (str "" "