Erik A. Hanson's Weblog

Archive for November, 2010

Expectacular

Posted: Saturday, November 27th, 2010    Tags: My Software, Objective C, Unit Testing

I started working on a matcher library for Cocoa/Objective-C called Expectacular. My main goals were to have a syntax that I prefer over OCHamcrest‘s syntax, and to have something that XCode’s code sense feature will understand so it can autocomplete my code. Here are some examples: [Expect int:[myArray count] toEqual:4]; [Expect object:user.name toEqual:@"Fred"]; [Expect array:validTokens [...]