Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/ComparisonTest.java @ 12752:71991b7a0f14
SL: Enhanced SimpleLanguage with support for if statements, function calls, function caching + inlining and builtins.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Nov 2013 21:34:44 +0100 |
parents | 07f8d136a05e |
children |
comparison
equal
deleted
inserted
replaced
12712:882a0aadfed6 | 12752:71991b7a0f14 |
---|---|
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", |