[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Fri Feb 4 13:22:11 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Collections5.java added (r1.1)
---
Log message:
Add another test case
---
Diffs of the changes: (+16 -0)
Collections5.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java:1.1
*** /dev/null Fri Feb 4 15:22:11 2005
--- llvm-java/test/Programs/SingleSource/UnitTests/Collections5.java Fri Feb 4 15:22:01 2005
***************
*** 0 ****
--- 1,16 ----
+ import java.util.*;
+
+ public class Collections5
+ {
+ 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);
+ }
+ }
More information about the llvm-commits
mailing list