jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1190026 - /incubator/jena/Jena2/ARQ/trunk/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestPattern2Join.java
Date Thu, 27 Oct 2011 21:05:29 GMT
Author: andy
Date: Thu Oct 27 21:05:29 2011
New Revision: 1190026

URL: http://svn.apache.org/viewvc?rev=1190026&view=rev
Log:
Add OpQuad ; Create (triple,quad) block to join converter.

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

Modified: incubator/jena/Jena2/ARQ/trunk/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestPattern2Join.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/ARQ/trunk/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestPattern2Join.java?rev=1190026&r1=1190025&r2=1190026&view=diff
==============================================================================
--- incubator/jena/Jena2/ARQ/trunk/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestPattern2Join.java
(original)
+++ incubator/jena/Jena2/ARQ/trunk/src/test/java/com/hp/hpl/jena/sparql/algebra/optimize/TestPattern2Join.java
Thu Oct 27 21:05:29 2011
@@ -68,7 +68,7 @@ public class TestPattern2Join extends Ba
                                            "   (quad ?g ?s3 ?p3 ?o3) )") ; }
 
     @Test public void qp2join_06() { test4("{GRAPH ?g1 { ?s1 ?p1 ?o1 } GRAPH ?g2 { ?s2 ?p2
?o2 } }", 
-                                           "(join (quadpattern (?g1 ?s1 ?p1 ?o1)) (quadpattern
(?g2 ?s2 ?p2 ?o2)) )") ; }
+                                           "(join (quad ?g1 ?s1 ?p1 ?o1) (quad ?g2 ?s2 ?p2
?o2) )") ; }
 
     
     @Test public void qp2join_07() { test4("{GRAPH ?g1 { ?s1 ?p1 ?o1 . ?s9 ?p9 ?o9} GRAPH
?g2 { ?s2 ?p2 ?o2 . ?s8 ?p8 ?o8}}",     
@@ -95,12 +95,10 @@ public class TestPattern2Join extends Ba
     
     private static void test(Op input, String... joinForm)
     {
-        System.out.println(input) ;
-
         Op op2 = Transformer.transform(new TransformPattern2Join() , input) ;
         String x = StrUtils.strjoinNL(joinForm) ;
         Op opExpected = SSE.parseOp("(prefix ((: <http://example/>)) "+x+")") ;
-        assertEquals(op2, opExpected) ; 
+        assertEquals(opExpected, op2) ; 
     }
 }
 



Mime
View raw message