Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/LoopTest.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 LoopTest extends AbstractTest { | 28 public class LoopTest 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 " while (i < 1000) { ", | 33 " while (i < 1000) { ", |
34 " i = i + 1; ", | 34 " i = i + 1; ", |
35 " } ", | 35 " } ", |
36 " return i; ", | 36 " return i; ", |
37 "} ", | 37 "} ", |
38 }; | 38 }; |
39 | 39 |
40 private static String[] OUTPUT = new String[] { | 40 private static String[] OUTPUT = new String[] { |
41 "1000", | 41 "1000", |
42 }; | 42 }; |
43 | 43 |
44 @Test | 44 @Test |
45 public void test() { | 45 public void test() { |
46 executeSL(INPUT, OUTPUT, false); | 46 executeSL(INPUT, OUTPUT, false); |