Group Group Group Group Group Group Group Group Group

Chapter 11: Testing acronyms and categories

Straight forward question, but in chapter 11, subheading Testing acronyms and categories, the book creates a model extension using extension App.Category. Where as previously, it was being created as simply extension Users. Why did it start prefixing App. to the class? is it just a preference?

Just seemed odd to change style mid-chapter :slight_smile:

@dombryan94 the reason is that helpfully there’s something in the Objective-C runtime already called Category and in the tests because it uses the runtime to discover the tests it can’t tell which Category you’re referring to, so you have to qualify it