1 USING: rss io kernel io.files tools.test io.encodings.utf8 ;
4 : load-news-file ( filename -- feed )
5 #! Load an news syndication file and process it, returning
6 #! it as an feed tuple.
7 utf8 <file-reader> read-feed ;
13 "http://meerkat.oreillynet.com"
18 "XML: A Disruptive Technology"
19 "http://c.moreover.com/click/here.pl?r123"
20 "\n XML is placing increasingly heavy loads on the existing technical\n infrastructure of the Internet.\n "
24 } ] [ "extra/rss/rss1.xml" resource-path load-news-file ] unit-test
34 "Atom draft-07 snapshot"
35 "http://example.org/2005/04/02/atom"
36 "\n <div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p><i>[Update: The Atom draft is finished.]</i></p>\n </div>\n "
38 "2003-12-13T08:29:29-04:00"
41 } ] [ "extra/rss/atom.xml" resource-path load-news-file ] unit-test