diff 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
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLTckTest.java	Wed Sep 09 19:18:44 2015 +0200
+++ b/truffle/com.oracle.truffle.sl.test/src/com/oracle/truffle/sl/test/SLTckTest.java	Thu Sep 10 16:26:31 2015 +0200
@@ -69,6 +69,9 @@
                 "function plus(a, b) {\n" +
                 "  return a + b;\n" +
                 "}\n" +
+                "function identity(x) {\n" +
+                "  return x;\n" +
+                "}\n" +
                 "function apply(f) {\n" +
                 "  return f(18, 32) + 10;\n" +
                 "}\n" +
@@ -107,6 +110,11 @@
     }
 
     @Override
+    protected String identity() {
+        return "identity";
+    }
+
+    @Override
     protected String plus(Class<?> type1, Class<?> type2) {
         return "plus";
     }
@@ -160,4 +168,12 @@
     @Override
     public void testPrimitiveReturnTypeFloat() throws Exception {
     }
+
+    @Override
+    public void testPrimitiveidentityDouble() throws Exception {
+    }
+
+    @Override
+    public void testPrimitiveidentityFloat() throws Exception {
+    }
 }