Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/TernaryTest.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 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/TernaryTest.java Thu Nov 07 20:55:13 2013 +0100 +++ b/graal/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/TernaryTest.java Mon Nov 11 21:34:44 2013 +0100 @@ -29,11 +29,11 @@ private static String[] INPUT = new String[] { "function main { " + - " print #(1 < 2) ? 1 : 2;" + - " print #(2 < 1) ? 100000000000000 : 1; ", - " print #(1 < 2) ? 100000000000000 : 1; ", - " print #(2 < 1) ? \"wrong\" : \"true\";", - " print #(2 < 1) ? \"wrong\" : 1;", + " print(#(1 < 2) ? 1 : 2);" + + " print(#(2 < 1) ? 100000000000000 : 1); ", + " print(#(1 < 2) ? 100000000000000 : 1); ", + " print(#(2 < 1) ? \"wrong\" : \"true\");", + " print(#(2 < 1) ? \"wrong\" : 1);", "} ", };