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/5148003 to your computer and use it in GitHub Desktop.
Save jpsim/5148003 to your computer and use it in GitHub Desktop.
- (void)testThatConvertingBackAndForthDoesntAffectResults {
double celsius = 50;
double farenheitResult = [controller convertCelsiusToFarenheit:celsius];
//convert back
double celsiusResult = [controller convertFarenheithToCelsius:farenheitResult];
STAssertEquals(celsius, celsiusResult, @"should be equal");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment