Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/DivTest.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 DivTest extends AbstractTest { | 28 public class DivTest 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 4 / 2; ", | 32 " print 4 / 2; ", |
33 " print 4 / 4000000000000; ", | 33 " print 4 / 4000000000000; ", |
34 " print 3000000000000 / 3; ", | 34 " print 3000000000000 / 3; ", |
35 " print 3000000000000 / 3000000000000; ", | 35 " print 3000000000000 / 3000000000000; ", |
36 "} ", | 36 "} ", |
37 }; | 37 }; |
38 | 38 |
39 private static String[] OUTPUT = new String[] { | 39 private static String[] OUTPUT = new String[] { |
40 "2", | 40 "2", |
41 "0", | 41 "0", |
42 "1000000000000", | 42 "1000000000000", |
43 "1", | 43 "1", |
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); |