Fix allthis.atom test — it was misidentified — it’s actually an RSS feed.

This commit is contained in:
Brent Simmons 2025-01-20 11:14:53 -08:00
parent fb7caeb5ad
commit 09397f0a74
3 changed files with 18 additions and 17 deletions

View File

@ -20,23 +20,6 @@ final class AtomParserTests: XCTestCase {
}
}
func testAllThisPerformance() {
// 0.003 sec on my 2012 iMac.
let d = parserData("allthis", "atom", "http://leancrew.com/all-this")
self.measure {
let _ = try! FeedParser.parse(d)
}
}
func testGettingHomePageLink() {
let d = parserData("allthis", "atom", "http://leancrew.com/all-this")
let parsedFeed = try! FeedParser.parse(d)!
XCTAssertTrue(parsedFeed.homePageURL == "http://leancrew.com/all-this")
}
func testDaringFireball() {
let d = parserData("DaringFireball", "atom", "http://daringfireball.net/") //Its actually an Atom feed

View File

@ -51,6 +51,24 @@ final class RSSParserTests: XCTestCase {
}
}
func testAllThisPerformance() {
// 0.003 sec on my 2012 iMac.
// 0.002 2022 Mac Studio
let d = parserData("allthis", "rss", "http://leancrew.com/all-this")
self.measure {
let _ = try! FeedParser.parse(d)
}
}
func testGettingHomePageLink() {
let d = parserData("allthis", "rss", "http://leancrew.com/all-this")
let parsedFeed = try! FeedParser.parse(d)!
XCTAssertTrue(parsedFeed.homePageURL == "http://leancrew.com/all-this")
}
func testNatashaTheRobot() async {
let d = parserData("natasha", "xml", "https://www.natashatherobot.com/")