Mercurial > hg > truffle
comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/lang/Long_greater03.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 |
comparison
equal
deleted
inserted
replaced
7281:e960cda050d7 | 7282:390448a6b535 |
---|---|
22 */ | 22 */ |
23 /* | 23 /* |
24 */ | 24 */ |
25 package com.oracle.graal.jtt.lang; | 25 package com.oracle.graal.jtt.lang; |
26 | 26 |
27 import com.oracle.graal.jtt.*; | |
27 import org.junit.*; | 28 import org.junit.*; |
28 | 29 |
29 @SuppressWarnings("static-method") | 30 public final class Long_greater03 extends JTTTest { |
30 public final class Long_greater03 { | |
31 | 31 |
32 public static boolean test(long i) { | 32 public static boolean test(long i) { |
33 if (i > -5L) { | 33 if (i > -5L) { |
34 return true; | 34 return true; |
35 } | 35 } |
36 return false; | 36 return false; |
37 } | 37 } |
38 | 38 |
39 @Test | 39 @Test |
40 public void run0() throws Throwable { | 40 public void run0() throws Throwable { |
41 Assert.assertEquals(false, test(-9223372036854775808L)); | 41 runTest("test", -9223372036854775808L); |
42 } | 42 } |
43 | 43 |
44 @Test | 44 @Test |
45 public void run1() throws Throwable { | 45 public void run1() throws Throwable { |
46 Assert.assertEquals(false, test(-6L)); | 46 runTest("test", -6L); |
47 } | 47 } |
48 | 48 |
49 @Test | 49 @Test |
50 public void run2() throws Throwable { | 50 public void run2() throws Throwable { |
51 Assert.assertEquals(false, test(-5L)); | 51 runTest("test", -5L); |
52 } | 52 } |
53 | 53 |
54 @Test | 54 @Test |
55 public void run3() throws Throwable { | 55 public void run3() throws Throwable { |
56 Assert.assertEquals(true, test(-4L)); | 56 runTest("test", -4L); |
57 } | 57 } |
58 | 58 |
59 @Test | 59 @Test |
60 public void run4() throws Throwable { | 60 public void run4() throws Throwable { |
61 Assert.assertEquals(true, test(-1L)); | 61 runTest("test", -1L); |
62 } | 62 } |
63 | 63 |
64 @Test | 64 @Test |
65 public void run5() throws Throwable { | 65 public void run5() throws Throwable { |
66 Assert.assertEquals(true, test(0L)); | 66 runTest("test", 0L); |
67 } | 67 } |
68 | 68 |
69 @Test | 69 @Test |
70 public void run6() throws Throwable { | 70 public void run6() throws Throwable { |
71 Assert.assertEquals(true, test(1L)); | 71 runTest("test", 1L); |
72 } | 72 } |
73 | 73 |
74 @Test | 74 @Test |
75 public void run7() throws Throwable { | 75 public void run7() throws Throwable { |
76 Assert.assertEquals(true, test(2L)); | 76 runTest("test", 2L); |
77 } | 77 } |
78 | 78 |
79 @Test | 79 @Test |
80 public void run8() throws Throwable { | 80 public void run8() throws Throwable { |
81 Assert.assertEquals(true, test(9223372036854775807L)); | 81 runTest("test", 9223372036854775807L); |
82 } | 82 } |
83 | 83 |
84 } | 84 } |