public static void main(String [] args) {
TestResult tr = new TestResult();
Test t = suite();
t.run(tr);
System.out.println(tr.errorCount());
Enumeration e = tr.failures();
while (e.hasMoreElements()) {
((TestFailure)e.nextElement ()).thrownException().printStackTrace();
}
System.out.println(tr.failureCount());