! 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 urls ; IN: xml.interpolate.tests [ "a" "c" { "a" "c" f } ] [ "<-a->/><->" string>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 [ {" "} ] [ 3 f URL" http://factorcode.org/" "hello" \ drop false=<-> url=<-> string=<-> word=<->/> XML> pprint-xml>string ] unit-test