Mercurial > hg > truffle
diff graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_l2i.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 | 10a72efd23bc |
line wrap: on
line diff
--- a/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_l2i.java Thu Dec 20 13:14:56 2012 +0100 +++ b/graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/bytecode/BC_l2i.java Thu Dec 20 14:59:57 2012 +0100 @@ -22,12 +22,13 @@ */ package com.oracle.graal.jtt.bytecode; +import com.oracle.graal.jtt.*; import org.junit.*; /* * TODO: test roundoff behavior */ -public class BC_l2i { +public class BC_l2i extends JTTTest { public static int test(long a) { return (int) a; @@ -35,37 +36,37 @@ @Test public void run0() throws Throwable { - Assert.assertEquals(1, test(1L)); + runTest("test", 1L); } @Test public void run1() throws Throwable { - Assert.assertEquals(2, test(2L)); + runTest("test", 2L); } @Test public void run2() throws Throwable { - Assert.assertEquals(3, test(3L)); + runTest("test", 3L); } @Test public void run3() throws Throwable { - Assert.assertEquals(-1, test(-1L)); + runTest("test", -1L); } @Test public void run4() throws Throwable { - Assert.assertEquals(-2147483647, test(-2147483647L)); + runTest("test", -2147483647L); } @Test public void run5() throws Throwable { - Assert.assertEquals(-2147483648, test(-2147483648L)); + runTest("test", -2147483648L); } @Test public void run6() throws Throwable { - Assert.assertEquals(2147483647, test(2147483647L)); + runTest("test", 2147483647L); } }