-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update: make sure all WordPressElements has public init * update: make RSSItemCategory equatable
- Loading branch information
1 parent
6ae9011
commit eade198
Showing
6 changed files
with
58 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import XCTest | ||
@testable import SyndiKit | ||
|
||
final class RSSItemCategoryTests: XCTestCase { | ||
|
||
func testTwoEqualCategories() { | ||
let c1 = RSSItemCategory( | ||
value: "Top Menu", | ||
domain: "nav_menu", | ||
nicename: "top-menu" | ||
) | ||
|
||
let c2 = RSSItemCategory( | ||
value: "Top Menu", | ||
domain: "nav_menu", | ||
nicename: "top-menu" | ||
) | ||
|
||
XCTAssertEqual(c1, c2) | ||
} | ||
|
||
func testTwoUnequalCategories() { | ||
let c1 = RSSItemCategory( | ||
value: "Uncategorized", | ||
domain: "category", | ||
nicename: "uncategorized" | ||
) | ||
|
||
let c2 = RSSItemCategory( | ||
value: "Top Menu", | ||
domain: "nav_menu", | ||
nicename: "top-menu" | ||
) | ||
|
||
XCTAssertNotEqual(c1, c2) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters