Skip to content

Instantly share code, notes, and snippets.

@nixpulvis
Created September 21, 2012 19:33
Show Gist options
  • Save nixpulvis/3763424 to your computer and use it in GitHub Desktop.
Save nixpulvis/3763424 to your computer and use it in GitHub Desktop.
quick and dirty assertEquals
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