Add test for Atom authors. Currently failing.
This commit is contained in:
parent
ccd87040c3
commit
0317196cf6
|
@ -53,7 +53,7 @@ class AtomParserTests: XCTestCase {
|
||||||
|
|
||||||
XCTAssertTrue(article.uniqueID.hasPrefix("tag:daringfireball.net,2017:/"))
|
XCTAssertTrue(article.uniqueID.hasPrefix("tag:daringfireball.net,2017:/"))
|
||||||
|
|
||||||
// XCTAssertEqual(article.authors!.count, 1) // TODO: parse Atom authors
|
XCTAssertEqual(article.authors!.count, 1) // TODO: parse Atom authors
|
||||||
|
|
||||||
XCTAssertNotNil(article.datePublished)
|
XCTAssertNotNil(article.datePublished)
|
||||||
XCTAssert(article.attachments == nil)
|
XCTAssert(article.attachments == nil)
|
||||||
|
@ -98,6 +98,5 @@ class AtomParserTests: XCTestCase {
|
||||||
XCTAssertNil(attachment.sizeInBytes)
|
XCTAssertNil(attachment.sizeInBytes)
|
||||||
XCTAssertEqual(attachment.mimeType!, "audio/mpeg")
|
XCTAssertEqual(attachment.mimeType!, "audio/mpeg")
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue