This would be needed for the ConstantValue attribute test... Apply it
if you want :-)

Signed-off-by: Vegard Nossum <vegard.nos...@gmail.com>
---
 regression/jvm/TestCase.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/regression/jvm/TestCase.java b/regression/jvm/TestCase.java
index 8ff0207..e69f8fe 100644
--- a/regression/jvm/TestCase.java
+++ b/regression/jvm/TestCase.java
@@ -26,6 +26,12 @@
 package jvm;
 
 public class TestCase {
+    protected static void assertEquals(boolean expected, boolean actual) {
+        if (expected != actual) {
+            fail("Expected '" + expected + "', but was '" + actual + "'.");
+        }
+    }
+
     protected static void assertEquals(int expected, int actual) {
         if (expected != actual) {
             fail("Expected '" + expected + "', but was '" + actual + "'.");
@@ -43,6 +49,13 @@ public class TestCase {
             fail("Expected '" + expected + "', but was '" + actual + "'.");
         }
     }
+
+    public static void assertEquals(double expected, double actual) {
+        if (expected != actual) {
+            fail("Expected '" + expected + "', but was '" + actual + "'.");
+        }
+    }
+
     protected static void assertEquals(Object expected, Object actual) {
         if (expected != actual) {
             fail("Expected '" + expected + "', but was '" + actual + "'.");
-- 
1.6.0.4


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to