XCTestCase | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/8458722-testing-in-ios/lessons/2

At 08:32, you show access scope for private as file-scope but isn’t private used for class-scope and file private for file-scope?

When used at file-level, fileprivate and private have the same meaning. fileprivate is only necessary when you want to share members that would otherwise be private, between different types in the same file. So it’s useful enough to be included in the language, but rarely needed.