Mercurial > hg > truffle
comparison graal/com.oracle.graal.jtt/src/com/oracle/graal/jtt/lang/Class_isInstance04.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_isInstance04 extends JTTTest { |
30 public final class Class_isInstance04 { | |
31 | 31 |
32 static final String string = ""; | 32 static final String string = ""; |
33 static final Object[] oarray = {}; | 33 static final Object[] oarray = {}; |
34 static final String[] sarray = {}; | 34 static final String[] sarray = {}; |
35 | 35 |
47 return String[].class.isInstance(object); | 47 return String[].class.isInstance(object); |
48 } | 48 } |
49 | 49 |
50 @Test | 50 @Test |
51 public void run0() throws Throwable { | 51 public void run0() throws Throwable { |
52 Assert.assertEquals(false, test(0)); | 52 runTest("test", 0); |
53 } | 53 } |
54 | 54 |
55 @Test | 55 @Test |
56 public void run1() throws Throwable { | 56 public void run1() throws Throwable { |
57 Assert.assertEquals(false, test(1)); | 57 runTest("test", 1); |
58 } | 58 } |
59 | 59 |
60 @Test | 60 @Test |
61 public void run2() throws Throwable { | 61 public void run2() throws Throwable { |
62 Assert.assertEquals(true, test(2)); | 62 runTest("test", 2); |
63 } | 63 } |
64 | 64 |
65 @Test | 65 @Test |
66 public void run3() throws Throwable { | 66 public void run3() throws Throwable { |
67 Assert.assertEquals(false, test(3)); | 67 runTest("test", 3); |
68 } | 68 } |
69 | 69 |
70 } | 70 } |