comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/ComparisonTest.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 ComparisonTest extends AbstractTest { 28 public class ComparisonTest 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 < 20; ", 32 " print 4 < 20; ",
33 " print 4 < \"20\"; ", 33 " print 4 < \"20\"; ",
34 " print \"4\" < 20; ", 34 " print \"4\" < 20; ",
35 " print \"4\" < \"20\"; ", 35 " print \"4\" < \"20\"; ",
36 " print 4 < 20000000000000; ", 36 " print 4 < 20000000000000; ",
37 " print 4000000000000 < 20; ", 37 " print 4000000000000 < 20; ",
38 " print 4000000000000 < 20000000000000; ", 38 " print 4000000000000 < 20000000000000; ",
39 "} ", 39 "} ",
40 }; 40 };
41 41
42 private static String[] OUTPUT = new String[] { 42 private static String[] OUTPUT = new String[] {
43 "true", 43 "true",
44 "false", 44 "false",
45 "false", 45 "false",
46 "false", 46 "false",
47 "true", 47 "true",
48 "false", 48 "false",
49 "true", 49 "true",
50 }; 50 };
51 51
52 @Test 52 @Test
53 public void test() { 53 public void test() {
54 executeSL(INPUT, OUTPUT, false); 54 executeSL(INPUT, OUTPUT, false);