Created
April 17, 2015 13:31
-
-
Save kmdupr33/ea00e4e2e2489a965317 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void testSquare() { | |
MathNerd mathNerd = new MathNerd(); | |
//Math nerds only use calculators when they need them | |
int result = mathNerd.squareBigNumber(new BrokenCalculator(), 54321); | |
assertNotEquals(result, 2950771041); | |
result = mathNerd.squareBigNumber(new Calculator(), 54321); | |
assertEquals(result, 2950771041); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment