[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Mon Feb 7 18:49:14 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Collections5.java updated: 1.1 -> 1.2
---
Log message:
Make test case fail.
---
Diffs of the changes: (+13 -9)
Collections5.java | 22 +++++++++++++---------
1 files changed, 13 insertions(+), 9 deletions(-)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java
diff -u llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java:1.1 llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java:1.2
--- llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java:1.1 Fri Feb 4 15:22:01 2005
+++ llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java Mon Feb 7 20:49:03 2005
@@ -2,15 +2,19 @@
public class Collections5
{
+ public static void testList(List l) {
+ Collections.addRandomIntsToCollection(l);
+ Collections.printIntCollection(l);
+ java.util.Collections.rotate(l, Collections.rand.nextInt(50000));
+ Collections.printIntCollection(l);
+ java.util.Collections.shuffle(l, Collections.rand);
+ Collections.printIntCollection(l);
+ java.util.Collections.sort(l);
+ Collections.printIntCollection(l);
+ }
+
public static void main(String[] args) {
- List l1 = new ArrayList();
- Collections.addRandomIntsToCollection(l1);
- Collections.printIntCollection(l1);
- java.util.Collections.rotate(l1, Collections.rand.nextInt(50000));
- Collections.printIntCollection(l1);
- java.util.Collections.shuffle(l1, Collections.rand);
- Collections.printIntCollection(l1);
- java.util.Collections.sort(l1);
- Collections.printIntCollection(l1);
+ testList(new LinkedList());
+ testList(new ArrayList());
}
}
More information about the llvm-commits
mailing list