Skip to content

Instantly share code, notes, and snippets.

@joesus
Last active June 21, 2017 23:23
Show Gist options
  • Save joesus/334cf13568d007f45ce326f05c5fa68a to your computer and use it in GitHub Desktop.
Save joesus/334cf13568d007f45ce326f05c5fa68a to your computer and use it in GitHub Desktop.
func testHasZeroSectionsWhenZeroKittens() {
dataSource.kittens = []
let tableView = UITableView()
XCTAssertEqual(dataSource.numberOfSections(in: tableView), 0,
"TableView should have zero sections when no kittens are present")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment