Mercurial > hg > truffle
comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/lang/Class_isPrimitive01.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 Class_isPrimitive01 extends JTTTest { |
30 public final class Class_isPrimitive01 { | |
31 | 31 |
32 public static boolean test(int i) { | 32 public static boolean test(int i) { |
33 if (i == 0) { | 33 if (i == 0) { |
34 return int.class.isPrimitive(); | 34 return int.class.isPrimitive(); |
35 } | 35 } |
57 return false; | 57 return false; |
58 } | 58 } |
59 | 59 |
60 @Test | 60 @Test |
61 public void run0() throws Throwable { | 61 public void run0() throws Throwable { |
62 Assert.assertEquals(true, test(0)); | 62 runTest("test", 0); |
63 } | 63 } |
64 | 64 |
65 @Test | 65 @Test |
66 public void run1() throws Throwable { | 66 public void run1() throws Throwable { |
67 Assert.assertEquals(false, test(1)); | 67 runTest("test", 1); |
68 } | 68 } |
69 | 69 |
70 @Test | 70 @Test |
71 public void run2() throws Throwable { | 71 public void run2() throws Throwable { |
72 Assert.assertEquals(false, test(2)); | 72 runTest("test", 2); |
73 } | 73 } |
74 | 74 |
75 @Test | 75 @Test |
76 public void run3() throws Throwable { | 76 public void run3() throws Throwable { |
77 Assert.assertEquals(false, test(3)); | 77 runTest("test", 3); |
78 } | 78 } |
79 | 79 |
80 @Test | 80 @Test |
81 public void run4() throws Throwable { | 81 public void run4() throws Throwable { |
82 Assert.assertEquals(false, test(4)); | 82 runTest("test", 4); |
83 } | 83 } |
84 | 84 |
85 @Test | 85 @Test |
86 public void run5() throws Throwable { | 86 public void run5() throws Throwable { |
87 Assert.assertEquals(false, test(5)); | 87 runTest("test", 5); |
88 } | 88 } |
89 | 89 |
90 @Test | 90 @Test |
91 public void run6() throws Throwable { | 91 public void run6() throws Throwable { |
92 Assert.assertEquals(false, test(6)); | 92 runTest("test", 6); |
93 } | 93 } |
94 | 94 |
95 @Test | 95 @Test |
96 public void run7() throws Throwable { | 96 public void run7() throws Throwable { |
97 Assert.assertEquals(true, test(7)); | 97 runTest("test", 7); |
98 } | 98 } |
99 | 99 |
100 @Test | 100 @Test |
101 public void run8() throws Throwable { | 101 public void run8() throws Throwable { |
102 Assert.assertEquals(false, test(8)); | 102 runTest("test", 8); |
103 } | 103 } |
104 | 104 |
105 } | 105 } |