comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SumTest.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
comparison
equal deleted inserted replaced
9257:542712a4732a 9258:07f8d136a05e
26 26
27 // @formatter:off 27 // @formatter:off
28 public class SumTest extends AbstractTest { 28 public class SumTest 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 " i = 0; ", 32 " i = 0; ",
33 " sum = 0; ", 33 " sum = 0; ",
34 " while (i < 100000) { ", 34 " while (i < 100000) { ",
35 " sum = sum + 1000000; ", 35 " sum = sum + 1000000; ",
36 " i = i + 1; ", 36 " i = i + 1; ",
37 " } ", 37 " } ",
38 " return sum; ", 38 " return sum; ",
39 "} ", 39 "} ",
40 }; 40 };
41 41
42 private static String[] OUTPUT = new String[] { 42 private static String[] OUTPUT = new String[] {
43 "100000000000", 43 "100000000000",
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);