2009-01-27 14:34:14 -05:00
|
|
|
! Copyright (C) 2005, 2009 Daniel Ehrenberg
|
|
|
|
! See http://factorcode.org/license.txt for BSD license.
|
|
|
|
USING: xml xml.utilities tools.test xml.data ;
|
2008-06-27 02:30:23 -04:00
|
|
|
IN: xml.utilities.tests
|
|
|
|
|
|
|
|
[ "bar" ] [ "<foo>bar</foo>" string>xml children>string ] unit-test
|
|
|
|
|
|
|
|
[ "" ] [ "<foo></foo>" string>xml children>string ] unit-test
|
|
|
|
|
|
|
|
[ "" ] [ "<foo/>" string>xml children>string ] unit-test
|
2009-01-27 14:34:14 -05:00
|
|
|
|
|
|
|
XML-NS: foo http://blah.com
|
|
|
|
|
|
|
|
[ T{ name { main "bling" } { url "http://blah.com" } } ] [ "bling" foo ] unit-test
|