]> gitweb.factorcode.org Git - factor.git/commitdiff
xml.writer: adding a test for pprint-xml fix.
authorJohn Benediktsson <mrjbq7@gmail.com>
Sun, 1 Mar 2015 00:40:13 +0000 (16:40 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Sun, 1 Mar 2015 00:40:13 +0000 (16:40 -0800)
basis/xml/writer/writer-tests.factor

index 5f4f84f74c8976f0f5a424d357cb4ea77969559e..e27c500f3366eeb7a7268279ead7c2a5b6692332 100644 (file)
@@ -75,3 +75,7 @@ IN: xml.writer.tests
     ] map [XML <h2>Timings</h2> <table><-></table> XML]
     pprint-xml
 ] unit-test
+
+{ "<test name=\"bob\"/>" } [
+    "test" { { "name" "bob" } } { } <tag> xml>string
+] unit-test