O'Reilly logo
  • Wangqiang Li thinks this is interesting:

tableView.dataSource = FakeDataSource()

From

Cover of Test-Driven iOS Development with Swift

Note

bug: dataSource property is weak link, after assigning FakeDataSources(), it’s released again. and the dataSource of tableView is still nil.