Created
September 21, 2012 19:33
-
-
Save nixpulvis/3763424 to your computer and use it in GitHub Desktop.
quick and dirty assertEquals
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
private void assertEquals (String name, Object a, Object b) { | |
if (! a.equals(b)) { | |
System.out.println ("***** Test failed ***** " | |
+ name + ": " + totalTests); | |
System.out.println (" A => " + a); | |
System.out.println (" b => " + b); | |
totalErrors = totalErrors + 1; | |
} | |
totalTests = totalTests + 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment