[tracker/sparql-refactor] libtracker-data: Add fourth predicate variable test



commit 31c810f180da8bbc644ec6ce743a0360a6766c22
Author: Jürg Billeter <j bitron ch>
Date:   Tue Mar 30 17:19:44 2010 +0200

    libtracker-data: Add fourth predicate variable test

 tests/libtracker-data/basic/Makefile.am            |    4 +++-
 .../libtracker-data/basic/predicate-variable-4.out |    3 +++
 .../libtracker-data/basic/predicate-variable-4.rq  |    4 ++++
 tests/libtracker-data/tracker-sparql-test.c        |    1 +
 4 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-data/basic/Makefile.am b/tests/libtracker-data/basic/Makefile.am
index aca3bcc..c879fc4 100644
--- a/tests/libtracker-data/basic/Makefile.am
+++ b/tests/libtracker-data/basic/Makefile.am
@@ -10,5 +10,7 @@ EXTRA_DIST =                     \
 	predicate-variable-2.out \
 	predicate-variable-2.rq  \
 	predicate-variable-3.out \
-	predicate-variable-3.rq
+	predicate-variable-3.rq  \
+	predicate-variable-4.out \
+	predicate-variable-4.rq
 
diff --git a/tests/libtracker-data/basic/predicate-variable-4.out b/tests/libtracker-data/basic/predicate-variable-4.out
new file mode 100644
index 0000000..bee7eac
--- /dev/null
+++ b/tests/libtracker-data/basic/predicate-variable-4.out
@@ -0,0 +1,3 @@
+"http://example.org/ns#p";	"http://www.w3.org/2000/01/rdf-schema#domain";
+"http://example.org/x/p";	"http://www.w3.org/2000/01/rdf-schema#domain";
+"http://example.org/x/x";	"http://www.w3.org/1999/02/22-rdf-syntax-ns#type";
diff --git a/tests/libtracker-data/basic/predicate-variable-4.rq b/tests/libtracker-data/basic/predicate-variable-4.rq
new file mode 100644
index 0000000..e017b36
--- /dev/null
+++ b/tests/libtracker-data/basic/predicate-variable-4.rq
@@ -0,0 +1,4 @@
+PREFIX ns: <http://example.org/ns#>
+PREFIX x:  <http://example.org/x/>
+
+SELECT ?s ?p WHERE { ?s ?p x:A } ORDER BY ?s ?p
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 19c925e..41d9e38 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -59,6 +59,7 @@ const TestInfo tests[] = {
 	{ "basic/predicate-variable", "basic/data-1", FALSE },
 	{ "basic/predicate-variable-2", "basic/data-1", FALSE },
 	{ "basic/predicate-variable-3", "basic/data-1", FALSE },
+	{ "basic/predicate-variable-4", "basic/data-1", FALSE },
 	{ "bnode-coreference/query", "bnode-coreference/data", FALSE },
 	{ "bound/bound1", "bound/data", FALSE },
 	{ "datetime/delete-1", "datetime/data-3", FALSE },



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