works in Objective-C • Control flow: if, while, for • Primitive types, int, long, char, void *, const char * • The C standard library • UNIX system calls !13
or 3 letters to prefix all class names to prevent clashes • For example, the Foundation framework that defines strings, arrays, hashes etc. uses “NS” • “NS” stands for “NeXTSTEP” Prefixing classes
it(@"should have a name", ^ { id team = [Team team]; [[[team name] should] equal:@"Black Hawks"]; }); it(@"should have 11 players", ^ { id team = [Team team]; [[[team should] have:11] players]; }); }); });