equal
deleted
inserted
replaced
97 else fail(x + " not equal to " + y);} |
97 else fail(x + " not equal to " + y);} |
98 public static void main(String[] args) throws Throwable { |
98 public static void main(String[] args) throws Throwable { |
99 try {realMain(args);} catch (Throwable t) {unexpected(t);} |
99 try {realMain(args);} catch (Throwable t) {unexpected(t);} |
100 System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed); |
100 System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed); |
101 if (failed > 0) throw new AssertionError("Some tests failed");} |
101 if (failed > 0) throw new AssertionError("Some tests failed");} |
102 private static abstract class CheckedThread extends Thread { |
102 private abstract static class CheckedThread extends Thread { |
103 public abstract void realRun() throws Throwable; |
103 public abstract void realRun() throws Throwable; |
104 public void run() { |
104 public void run() { |
105 try { realRun(); } catch (Throwable t) { unexpected(t); }}} |
105 try { realRun(); } catch (Throwable t) { unexpected(t); }}} |
106 } |
106 } |