diff graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/Narrow_char03.java @ 7282:390448a6b535

converted the JTT tests to use the GraalCompilerTest framework which offers more control over what is compiled and executed the HP_series and FloatingReads tests have been disabled temporarily
author Doug Simon <doug.simon@oracle.com>
date Thu, 20 Dec 2012 14:59:57 +0100
parents e808627bd16f
children 64dcb92ee75a
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/Narrow_char03.java	Thu Dec 20 13:14:56 2012 +0100
+++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/optimize/Narrow_char03.java	Thu Dec 20 14:59:57 2012 +0100
@@ -22,11 +22,12 @@
  */
 package com.oracle.graal.jtt.optimize;
 
+import com.oracle.graal.jtt.*;
 import org.junit.*;
 
 /*
  */
-public class Narrow_char03 {
+public class Narrow_char03 extends JTTTest {
 
     static char[] val = new char[4];
 
@@ -37,22 +38,22 @@
 
     @Test
     public void run0() throws Throwable {
-        Assert.assertEquals(((char) 0), test(((char) 0)));
+        runTest("test", ((char) 0));
     }
 
     @Test
     public void run1() throws Throwable {
-        Assert.assertEquals(((char) 1), test(((char) 1)));
+        runTest("test", ((char) 1));
     }
 
     @Test
     public void run2() throws Throwable {
-        Assert.assertEquals(((char) 255), test(((char) 255)));
+        runTest("test", ((char) 255));
     }
 
     @Test
     public void run3() throws Throwable {
-        Assert.assertEquals(((char) 65000), test(((char) 65000)));
+        runTest("test", ((char) 65000));
     }
 
 }