[tracker/tracker-0.10] libtracker-data: Test for bogus extra data with anon blank nodes



commit 856fbffed3fc7ea47c1588ac3ff90949198363d3
Author: Jürg Billeter <j bitron ch>
Date:   Thu Apr 7 10:43:27 2011 +0200

    libtracker-data: Test for bogus extra data with anon blank nodes

 tests/libtracker-data/anon/Makefile.am      |    4 +++-
 tests/libtracker-data/anon/query-2.out      |    1 +
 tests/libtracker-data/anon/query-2.rq       |    7 +++++++
 tests/libtracker-data/tracker-sparql-test.c |    1 +
 4 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-data/anon/Makefile.am b/tests/libtracker-data/anon/Makefile.am
index c1d348e..8b2b576 100644
--- a/tests/libtracker-data/anon/Makefile.am
+++ b/tests/libtracker-data/anon/Makefile.am
@@ -4,4 +4,6 @@ EXTRA_DIST =                                           \
 	data.ontology                                  \
 	data.ttl                                       \
 	query.out                                      \
-	query.rq
+	query.rq                                       \
+	query-2.out                                    \
+	query-2.rq
diff --git a/tests/libtracker-data/anon/query-2.out b/tests/libtracker-data/anon/query-2.out
new file mode 100644
index 0000000..f27b76c
--- /dev/null
+++ b/tests/libtracker-data/anon/query-2.out
@@ -0,0 +1 @@
+"1"
diff --git a/tests/libtracker-data/anon/query-2.rq b/tests/libtracker-data/anon/query-2.rq
new file mode 100644
index 0000000..4ea5f5a
--- /dev/null
+++ b/tests/libtracker-data/anon/query-2.rq
@@ -0,0 +1,7 @@
+PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
+PREFIX  foaf:       <http://xmlns.com/foaf/0.1/>
+
+SELECT COUNT(?y)
+WHERE {
+  ?x foaf:name "Alice" ; foaf:member ?y .
+}
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 1062d20..23d67a7 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -63,6 +63,7 @@ const TestInfo tests[] = {
 	{ "algebra/filter-in-5", "algebra/data-2", FALSE },
 	{ "algebra/var-scope-join-1", "algebra/var-scope-join-1", FALSE },
 	{ "anon/query", "anon/data", FALSE },
+	{ "anon/query-2", "anon/data", FALSE },
 	{ "ask/ask-1", "ask/data", FALSE },
 	{ "basic/base-prefix-3", "basic/data-1", FALSE },
 	{ "basic/compare-cast", "basic/data-1", FALSE },



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