Skip to content

Instantly share code, notes, and snippets.

@jpsim
Created March 12, 2013 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpsim/5148005 to your computer and use it in GitHub Desktop.
Save jpsim/5148005 to your computer and use it in GitHub Desktop.
SPEC_BEGIN(TemperatureConverterTests)
describe(@"basic converter", ^{
it(@"converts farenheit To celsius", ^{
ViewController *controller = [ViewController alloc]init];
[[theValue([controller convertCelisusToFarenheit:-40]) should]equal:theValue(-40)];
});
it(@"converts celsius to farenheight", ^{
ViewController *controller = [ViewController alloc]init];
[[theValue([controller convertfarenheitToCelsius:-40]) should]equal:theValue(-40)];
});
});
SPEC_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment