! Copyright (C) 2009 Daniel Ehrenberg. ! See http://factorcode.org/license.txt for BSD license. USING: tools.test xml.interpolate multiline kernel assocs sequences accessors xml.writer xml.interpolate.private locals splitting ; IN: xml.interpolate.tests [ "a" "c" { "a" "c" f } ] [ "<-a->/><->" interpolated-doc [ second var>> ] [ fourth "val" swap at var>> ] [ extract-variables ] tri ] unit-test [ {" one y "} ] [ [let* | a [ "one" ] c [ "two" ] x [ "y" ] d [ [XML <-x-> XML] ] | <-a-> /> <-d-> XML> pprint-xml>string ] ] unit-test [ {" one two three "} ] [ "one two three" " " split [ [XML <-> XML] ] map <-> XML> pprint-xml>string ] unit-test