[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/RandomTest.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Tue Jan 25 14:13:44 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
RandomTest.java added (r1.1)
---
Log message:
Add test for java.util.Random
---
Diffs of the changes: (+11 -0)
RandomTest.java | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm-java/test/Programs/SingleSource/UnitTests/RandomTest.java
diff -c /dev/null llvm-java/test/Programs/SingleSource/UnitTests/RandomTest.java:1.1
*** /dev/null Tue Jan 25 16:13:43 2005
--- llvm-java/test/Programs/SingleSource/UnitTests/RandomTest.java Tue Jan 25 16:13:33 2005
***************
*** 0 ****
--- 1,11 ----
+ import java.util.*;
+
+ public class RandomTest
+ {
+ public static Random rand = new Random(0);
+
+ public static void main(String[] args) {
+ for (int i = 0; i < 1000; ++i)
+ Test.println(rand.nextInt());
+ }
+ }
More information about the llvm-commits
mailing list