1 USING: syndication io kernel io.files tools.test io.encodings.utf8
5 \ download-feed must-infer
8 : load-news-file ( filename -- feed )
9 #! Load an news syndication file and process it, returning
10 #! it as an feed tuple.
11 utf8 file-contents string>feed ;
17 URL" http://meerkat.oreillynet.com"
22 "XML: A Disruptive Technology"
23 URL" http://c.moreover.com/click/here.pl?r123"
24 "\n XML is placing increasingly heavy loads on the existing technical\n infrastructure of the Internet.\n "
28 } ] [ "resource:basis/syndication/test/rss1.xml" load-news-file ] unit-test
33 URL" http://example.org/"
38 "Atom draft-07 snapshot"
39 URL" http://example.org/2005/04/02/atom"
40 "\n <div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p><i>[Update: The Atom draft is finished.]</i></p>\n </div>\n "
42 T{ timestamp f 2003 12 13 8 29 29 T{ duration f 0 0 0 -4 0 0 } }
45 } ] [ "resource:basis/syndication/test/atom.xml" load-news-file ] unit-test