Signed-off-by: Tomek Grabiec <[email protected]>
---
regression/jvm/ArrayTest.java | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/regression/jvm/ArrayTest.java b/regression/jvm/ArrayTest.java
index bfada1a..d688f2c 100644
--- a/regression/jvm/ArrayTest.java
+++ b/regression/jvm/ArrayTest.java
@@ -139,6 +139,18 @@ public class ArrayTest extends TestCase {
assertEquals(a, array[1]);
}
+ private static void testDoubleElementLoadStore() {
+ double array[] = new double[2];
+ double a = 1.34567;
+ double b = -5.2311;
+
+ array[1] = a;
+ array[0] = b;
+
+ assertEquals(b, array[0]);
+ assertEquals(a, array[1]);
+ }
+
public static void testArrayClass() {
int big_arr[][][] = new int[2][2][2];
@@ -166,6 +178,7 @@ public class ArrayTest extends TestCase {
/* FIXME: testLongElementLoadStore(); */
testReferenceElementLoadStore();
testFloatElementLoadStore();
+ testDoubleElementLoadStore();
testArrayClass();
}
--
1.6.0.6
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel