USING: rss io kernel io.files tools.test io.encodings.utf8 calendar ; IN: rss.tests : load-news-file ( filename -- feed ) #! Load an news syndication file and process it, returning #! it as an feed tuple. utf8 file-contents read-feed ; [ T{ feed f "Meerkat" "http://meerkat.oreillynet.com" { T{ entry f "XML: A Disruptive Technology" "http://c.moreover.com/click/here.pl?r123" "\n XML is placing increasingly heavy loads on the existing technical\n infrastructure of the Internet.\n " f } } } ] [ "extra/rss/rss1.xml" resource-path load-news-file ] unit-test [ T{ feed f "dive into mark" "http://example.org/" { T{ entry f "Atom draft-07 snapshot" "http://example.org/2005/04/02/atom" "\n
\n

[Update: The Atom draft is finished.]

\n
\n " T{ timestamp f 2003 12 13 8 29 29 T{ duration f 0 0 0 -4 0 0 } } } } } ] [ "extra/rss/atom.xml" resource-path load-news-file ] unit-test