jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From casta...@apache.org
Subject svn commit: r1169539 - /incubator/jena/Jena2/ARQ/trunk/src-test/com/hp/hpl/jena/sparql/algebra/optimize/TestOptimizer.java
Date Sun, 11 Sep 2011 21:01:51 GMT
Author: castagna
Date: Sun Sep 11 21:01:49 2011
New Revision: 1169539

URL: http://svn.apache.org/viewvc?rev=1169539&view=rev
Log:
JENA-111

Uncommented (and fixed) valid test.

Modified:
    incubator/jena/Jena2/ARQ/trunk/src-test/com/hp/hpl/jena/sparql/algebra/optimize/TestOptimizer.java

Modified: incubator/jena/Jena2/ARQ/trunk/src-test/com/hp/hpl/jena/sparql/algebra/optimize/TestOptimizer.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src-test/com/hp/hpl/jena/sparql/algebra/optimize/TestOptimizer.java?rev=1169539&r1=1169538&r2=1169539&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src-test/com/hp/hpl/jena/sparql/algebra/optimize/TestOptimizer.java
(original)
+++ incubator/jena/Jena2/ARQ/trunk/src-test/com/hp/hpl/jena/sparql/algebra/optimize/TestOptimizer.java
Sun Sep 11 21:01:49 2011
@@ -138,18 +138,6 @@ public class TestOptimizer extends BaseT
         check(queryString, opExpectedString) ;
     }
 
-//    @Test public void slice_order_to_topn_01a()
-//    {
-//        assertTrue(ARQ.isTrueOrUndef(ARQ.optTopNSorting)) ;
-//        String queryString = "SELECT ?s { ?s ?p ?o } ORDER BY ?p ?o LIMIT 42"  ;  
-//        String opExpectedString = 
-//            "(slice _ 42\n" +
-//            "  (project (?s)\n" + 
-//            "    (top (42 ?p ?o)\n" + 
-//            "      (bgp (triple ?s ?p ?o)))))" ; 
-//        check(queryString, opExpectedString) ;
-//    }
-
     @Test public void slice_order_to_topn_02()
     {
         assertTrue(ARQ.isTrueOrUndef(ARQ.optTopNSorting)) ;
@@ -268,7 +256,18 @@ public class TestOptimizer extends BaseT
             "      (bgp (triple ?s ?p ?o)))))" ; 
         check(queryString, opExpectedString) ;
     }
-    
+
+    @Test public void slice_order_to_topn_12()
+    {
+        assertTrue(ARQ.isTrueOrUndef(ARQ.optTopNSorting)) ;
+        String queryString = "SELECT ?s { ?s ?p ?o } ORDER BY ?p ?o LIMIT 42"  ;  
+        String opExpectedString = 
+            "(project (?s)\n" + 
+            "  (top (42 ?p ?o)\n" + 
+            "    (bgp (triple ?s ?p ?o))))" ; 
+        check(queryString, opExpectedString) ;
+    }
+
     @Test public void distinct_to_reduced_01()
     {
         assertTrue(ARQ.isTrueOrUndef(ARQ.optDistinctToReduced)) ;



Mime
View raw message