jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rve...@apache.org
Subject svn commit: r1516516 - /jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/expr/TestLeviathanFunctions.java
Date Thu, 22 Aug 2013 16:54:33 GMT
Author: rvesse
Date: Thu Aug 22 16:54:33 2013
New Revision: 1516516

URL: http://svn.apache.org/r1516516
Log:
Updated tests for Leviathan functions (JENA-507)

Modified:
    jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/expr/TestLeviathanFunctions.java

Modified: jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/expr/TestLeviathanFunctions.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/expr/TestLeviathanFunctions.java?rev=1516516&r1=1516515&r2=1516516&view=diff
==============================================================================
--- jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/expr/TestLeviathanFunctions.java
(original)
+++ jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/expr/TestLeviathanFunctions.java
Thu Aug 22 16:54:33 2013
@@ -90,7 +90,17 @@ public class TestLeviathanFunctions exte
     public void e_01() {
         test("lfn:e(2)", NodeFactoryExtra.doubleToNode(Math.exp(2d)));
     }
-
+    
+    @Test
+    public void pow_01() {
+        test("lfn:pow(2, 4)", "16");
+    }
+    
+    @Test
+    public void pow_02() {
+        test("lfn:pow(0.5, 3)", "0.125");
+    }
+    
     private static void test(String string, String result) {
         Node r = NodeFactoryExtra.parseNode(result);
         test(string, r);



Mime
View raw message