comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SubTest.java @ 9258:07f8d136a05e

Truffle API changes for the Frame API. Introduction of Assumptions class.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Tue, 23 Apr 2013 15:34:06 +0200
parents b2161263e9f2
children 71991b7a0f14
comparison
equal deleted inserted replaced
9257:542712a4732a 9258:07f8d136a05e
26 26
27 // @formatter:off 27 // @formatter:off
28 public class SubTest extends AbstractTest { 28 public class SubTest extends AbstractTest {
29 29
30 private static String[] INPUT = new String[] { 30 private static String[] INPUT = new String[] {
31 "function main { ", 31 "function main { ",
32 " print 3 - 4; ", 32 " print 3 - 4; ",
33 " print 3 - 4000000000000; ", 33 " print 3 - 4000000000000; ",
34 " print 3000000000000 - 4; ", 34 " print 3000000000000 - 4; ",
35 " print 3000000000000 - 4000000000000; ", 35 " print 3000000000000 - 4000000000000; ",
36 "} ", 36 "} ",
37 }; 37 };
38 38
39 private static String[] OUTPUT = new String[] { 39 private static String[] OUTPUT = new String[] {
40 "-1", 40 "-1",
41 "-3999999999997", 41 "-3999999999997",
42 "2999999999996", 42 "2999999999996",
43 "-1000000000000", 43 "-1000000000000",
44 }; 44 };
45 45
46 @Test 46 @Test
47 public void test() { 47 public void test() {
48 executeSL(INPUT, OUTPUT, false); 48 executeSL(INPUT, OUTPUT, false);