[llvm-commits] CVS: llvm-java/test/Programs/SingleSource/UnitTests/Array.java ArrayCopy.java
Alkis Evlogimenos
alkis at cs.uiuc.edu
Thu Feb 3 13:41:16 PST 2005
Changes in directory llvm-java/test/Programs/SingleSource/UnitTests:
Array.java updated: 1.2 -> 1.3
ArrayCopy.java updated: 1.3 -> 1.4
---
Log message:
Use methods from Util.java
---
Diffs of the changes: (+8 -16)
Array.java | 6 ++----
ArrayCopy.java | 18 ++++++------------
2 files changed, 8 insertions(+), 16 deletions(-)
Index: llvm-java/test/Programs/SingleSource/UnitTests/Array.java
diff -u llvm-java/test/Programs/SingleSource/UnitTests/Array.java:1.2 llvm-java/test/Programs/SingleSource/UnitTests/Array.java:1.3
--- llvm-java/test/Programs/SingleSource/UnitTests/Array.java:1.2 Sat Dec 11 17:31:49 2004
+++ llvm-java/test/Programs/SingleSource/UnitTests/Array.java Thu Feb 3 15:41:05 2005
@@ -6,8 +6,7 @@
for (int i = 0, e = intArray.length; i != e; ++i)
intArray[i] = intArray.length - i;
- for (int i = 0, e = intArray.length; i != e; ++i)
- Test.println(intArray[i]);
+ Util.printlnElements(intArray);
Object[] objectArray = new Object[10];
@@ -16,7 +15,6 @@
objectArray[i] = intArray;
intArray = (int[]) objectArray[4];
- for (int i = 0, e = intArray.length; i != e; ++i)
- Test.println(intArray[i]);
+ Util.printlnElements(intArray);
}
}
Index: llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopy.java
diff -u llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopy.java:1.3 llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopy.java:1.4
--- llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopy.java:1.3 Wed Feb 2 12:40:08 2005
+++ llvm-java/test/Programs/SingleSource/UnitTests/ArrayCopy.java Thu Feb 3 15:41:05 2005
@@ -48,18 +48,12 @@
fillArray(ldst, ldst.length, lsrc, lsrc.length);
fillArray(odst, odst.length, osrc, osrc.length);
- for (int i = 0; i < idst.length; ++i)
- Test.println(idst[i]);
- for (int i = 0; i < bdst.length; ++i)
- Test.println(bdst[i]);
- for (int i = 0; i < fdst.length; ++i)
- Test.println(fdst[i]);
- for (int i = 0; i < ddst.length; ++i)
- Test.println(ddst[i]);
- for (int i = 0; i < zdst.length; ++i)
- Test.println(zdst[i]);
- for (int i = 0; i < ldst.length; ++i)
- Test.println(ldst[i]);
+ Util.printlnElements(idst);
+ Util.printlnElements(bdst);
+ Util.printlnElements(fdst);
+ Util.printlnElements(ddst);
+ Util.printlnElements(zdst);
+ Util.printlnElements(ldst);
for (int i = 0; i < odst.length; ++i)
Test.println(((Integer)odst[i]).intValue());
}
More information about the llvm-commits
mailing list