[tracker/parser] libtracker-data: Add algebra/two-nested-opt-alt test



commit cb9efa98d95ed2c44e22222e5b8ebc1f3abe1f10
Author: Jürg Billeter <j bitron ch>
Date:   Fri Aug 14 10:38:06 2009 +0200

    libtracker-data: Add algebra/two-nested-opt-alt test

 .../libtracker-data/algebra/two-nested-opt-alt.out |    2 ++
 .../libtracker-data/algebra/two-nested-opt-alt.rq  |   10 ++++++++++
 tests/libtracker-data/tracker-sparql-test.c        |    1 +
 3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-data/algebra/two-nested-opt-alt.out b/tests/libtracker-data/algebra/two-nested-opt-alt.out
new file mode 100644
index 0000000..18ba958
--- /dev/null
+++ b/tests/libtracker-data/algebra/two-nested-opt-alt.out
@@ -0,0 +1,2 @@
+"1"	"3"
+"1"	"4"
diff --git a/tests/libtracker-data/algebra/two-nested-opt-alt.rq b/tests/libtracker-data/algebra/two-nested-opt-alt.rq
new file mode 100644
index 0000000..3c6820d
--- /dev/null
+++ b/tests/libtracker-data/algebra/two-nested-opt-alt.rq
@@ -0,0 +1,10 @@
+PREFIX :    <http://example/>
+
+## The nested optional example, rewritten to a form that is the same
+## for the SPARQL algebra and the declarative semantics.
+SELECT *
+{ 
+    :x1 :p ?v .
+    OPTIONAL { :x3 :q ?w }
+    OPTIONAL { :x3 :q ?w  . :x2 :p ?v }
+}
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 5982548..eea3687 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -41,6 +41,7 @@ struct _TestInfo {
 
 const TestInfo tests[] = {
 	{ "algebra/two-nested-opt", "algebra/two-nested-opt" },
+	{ "algebra/two-nested-opt-alt", "algebra/two-nested-opt" },
 	{ "algebra/filter-nested-1", "algebra/data-1" },
 	{ "bnode-coreference/query", "bnode-coreference/data" },
 	{ "bound/bound1", "bound/data" },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]