comparison truffle/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLTckTest.java @ 22140:92906003d607

Adding check of behavior of identity function into the TCK
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Thu, 10 Sep 2015 16:26:31 +0200
parents 597953a8e6f0
children dc83cc1f94f2 ffadd23c63c8
comparison
equal deleted inserted replaced
22139:597953a8e6f0 22140:92906003d607
67 " return 42;\n" + // 67 " return 42;\n" + //
68 "}\n" + 68 "}\n" +
69 "function plus(a, b) {\n" + 69 "function plus(a, b) {\n" +
70 " return a + b;\n" + 70 " return a + b;\n" +
71 "}\n" + 71 "}\n" +
72 "function identity(x) {\n" +
73 " return x;\n" +
74 "}\n" +
72 "function apply(f) {\n" + 75 "function apply(f) {\n" +
73 " return f(18, 32) + 10;\n" + 76 " return f(18, 32) + 10;\n" +
74 "}\n" + 77 "}\n" +
75 "function cnt() {\n" + 78 "function cnt() {\n" +
76 " return 0;\n" + 79 " return 0;\n" +
102 } 105 }
103 106
104 @Override 107 @Override
105 protected String fourtyTwo() { 108 protected String fourtyTwo() {
106 return "fourtyTwo"; 109 return "fourtyTwo";
110 }
111
112 @Override
113 protected String identity() {
114 return "identity";
107 } 115 }
108 116
109 @Override 117 @Override
110 protected String plus(Class<?> type1, Class<?> type2) { 118 protected String plus(Class<?> type1, Class<?> type2) {
111 return "plus"; 119 return "plus";
158 } 166 }
159 167
160 @Override 168 @Override
161 public void testPrimitiveReturnTypeFloat() throws Exception { 169 public void testPrimitiveReturnTypeFloat() throws Exception {
162 } 170 }
171
172 @Override
173 public void testPrimitiveidentityDouble() throws Exception {
174 }
175
176 @Override
177 public void testPrimitiveidentityFloat() throws Exception {
178 }
163 } 179 }