equal
deleted
inserted
replaced
80 s2.descendingSet()); |
80 s2.descendingSet()); |
81 compareCollections(s1.tailSet(Integer.MIN_VALUE), |
81 compareCollections(s1.tailSet(Integer.MIN_VALUE), |
82 s2.tailSet(Integer.MIN_VALUE)); |
82 s2.tailSet(Integer.MIN_VALUE)); |
83 } |
83 } |
84 |
84 |
85 static abstract class MapFrobber { abstract void frob(Map m); } |
85 abstract static class MapFrobber { abstract void frob(Map m); } |
86 static abstract class SetFrobber { abstract void frob(Set s); } |
86 abstract static class SetFrobber { abstract void frob(Set s); } |
87 static abstract class ColFrobber { abstract void frob(Collection c); } |
87 abstract static class ColFrobber { abstract void frob(Collection c); } |
88 |
88 |
89 static ColFrobber adder(final int i) { |
89 static ColFrobber adder(final int i) { |
90 return new ColFrobber() {void frob(Collection c) { c.add(i); }}; |
90 return new ColFrobber() {void frob(Collection c) { c.add(i); }}; |
91 } |
91 } |
92 |
92 |
234 else fail(Arrays.toString(x) + " not equal to " + Arrays.toString(y));} |
234 else fail(Arrays.toString(x) + " not equal to " + Arrays.toString(y));} |
235 public static void main(String[] args) throws Throwable { |
235 public static void main(String[] args) throws Throwable { |
236 try {realMain(args);} catch (Throwable t) {unexpected(t);} |
236 try {realMain(args);} catch (Throwable t) {unexpected(t);} |
237 System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed); |
237 System.out.printf("%nPassed = %d, failed = %d%n%n", passed, failed); |
238 if (failed > 0) throw new AssertionError("Some tests failed");} |
238 if (failed > 0) throw new AssertionError("Some tests failed");} |
239 private static abstract class CheckedThread extends Thread { |
239 private abstract static class CheckedThread extends Thread { |
240 abstract void realRun() throws Throwable; |
240 abstract void realRun() throws Throwable; |
241 public void run() { |
241 public void run() { |
242 try {realRun();} catch (Throwable t) {unexpected(t);}}} |
242 try {realRun();} catch (Throwable t) {unexpected(t);}}} |
243 } |
243 } |