equal
deleted
inserted
replaced
64 else fail(x + " not equal to " + y);} |
64 else fail(x + " not equal to " + y);} |
65 public static void main(String[] args) throws Throwable { |
65 public static void main(String[] args) throws Throwable { |
66 try {realMain(args);} catch (Throwable t) {unexpected(t);} |
66 try {realMain(args);} catch (Throwable t) {unexpected(t);} |
67 System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed); |
67 System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed); |
68 if (failed > 0) throw new AssertionError("Some tests failed");} |
68 if (failed > 0) throw new AssertionError("Some tests failed");} |
69 private static abstract class CheckedThread extends Thread { |
69 private abstract static class CheckedThread extends Thread { |
70 public abstract void realRun() throws Throwable; |
70 public abstract void realRun() throws Throwable; |
71 public void run() { |
71 public void run() { |
72 try { realRun(); } catch (Throwable t) { unexpected(t); }}} |
72 try { realRun(); } catch (Throwable t) { unexpected(t); }}} |
73 } |
73 } |