comparison truffle/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLTckTest.java @ 22542:f8fb609939a7

Give implementors of the TCK control over comparing doubles.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Wed, 06 Jan 2016 13:14:35 +0100
parents 6ab540203853
children c3a7ad415a8a
comparison
equal deleted inserted replaced
22529:2643b968c0c6 22542:f8fb609939a7
45 import com.oracle.truffle.sl.test.instrument.InstrumentationTestMode; 45 import com.oracle.truffle.sl.test.instrument.InstrumentationTestMode;
46 import com.oracle.truffle.tck.TruffleTCK; 46 import com.oracle.truffle.tck.TruffleTCK;
47 47
48 import org.junit.After; 48 import org.junit.After;
49 49
50 import static org.junit.Assert.assertTrue;
51 50
52 import org.junit.Before; 51 import org.junit.Before;
53 import org.junit.Test; 52 import org.junit.Test;
53 import static org.junit.Assert.assertTrue;
54 54
55 /** 55 /**
56 * This is the way to verify your language implementation is compatible. 56 * This is the way to verify your language implementation is compatible.
57 * 57 *
58 */ 58 */
211 @Override 211 @Override
212 protected String evaluateSource() { 212 protected String evaluateSource() {
213 return "eval"; 213 return "eval";
214 } 214 }
215 215
216 // 216 @Override
217 // Ignore tests working on floats and double 217 protected String complexCopy() {
218 // 218 // skip these tests; SL doesn't have arrays
219 219 return null;
220 @Override 220 }
221 public void testPlusWithDouble() throws Exception { 221
222 } 222 @Override
223 223 protected String complexSumReal() {
224 @Override 224 // skip these tests; SL doesn't have arrays
225 public void testPlusWithFloat() throws Exception { 225 return null;
226 } 226 }
227 227
228 @Override 228 @Override
229 public void testPrimitiveReturnTypeDouble() throws Exception { 229 protected void assertDouble(String msg, double expectedValue, double actualValue) {
230 } 230 // don't compare doubles, SL had to convert them to longs
231
232 @Override
233 public void testPrimitiveReturnTypeFloat() throws Exception {
234 }
235
236 @Override
237 public void testPrimitiveidentityDouble() throws Exception {
238 }
239
240 @Override
241 public void testPrimitiveidentityFloat() throws Exception {
242 }
243
244 @Override
245 public void testSumRealOfComplexNumbersA() throws Exception {
246 }
247
248 @Override
249 public void testSumRealOfComplexNumbersB() throws Exception {
250 }
251
252 @Override
253 public void testSumRealOfComplexNumbersAsStructuredDataColumnBased() throws Exception {
254 }
255
256 @Override
257 public void testSumRealOfComplexNumbersAsStructuredDataRowBased() throws Exception {
258 }
259
260 @Override
261 public void testCopyComplexNumbersA() throws Exception {
262 }
263
264 @Override
265 public void testCopyComplexNumbersB() throws Exception {
266 }
267
268 @Override
269 public void testCopyStructuredComplexToComplexNumbersA() throws Exception {
270 }
271
272 @Override
273 public void readWriteDoubleValue() throws Exception {
274 }
275
276 @Override
277 public void readWriteFloatValue() throws Exception {
278 } 231 }
279 } 232 }