[tracker/sparql-refactor: 12/16] libtracker-data: Add third predicate variable test
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sparql-refactor: 12/16] libtracker-data: Add third predicate variable test
- Date: Wed, 31 Mar 2010 12:45:17 +0000 (UTC)
commit bd0bfbcfcb15c6206d115472aaf8e7daa4c83146
Author: Jürg Billeter <j bitron ch>
Date: Tue Mar 30 17:09:15 2010 +0200
libtracker-data: Add third predicate variable test
tests/libtracker-data/basic/Makefile.am | 4 +++-
.../libtracker-data/basic/predicate-variable-3.out | 2 ++
.../libtracker-data/basic/predicate-variable-3.rq | 4 ++++
tests/libtracker-data/tracker-sparql-test.c | 1 +
4 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtracker-data/basic/Makefile.am b/tests/libtracker-data/basic/Makefile.am
index b0f3265..aca3bcc 100644
--- a/tests/libtracker-data/basic/Makefile.am
+++ b/tests/libtracker-data/basic/Makefile.am
@@ -8,5 +8,7 @@ EXTRA_DIST = \
predicate-variable.out \
predicate-variable.rq \
predicate-variable-2.out \
- predicate-variable-2.rq
+ predicate-variable-2.rq \
+ predicate-variable-3.out \
+ predicate-variable-3.rq
diff --git a/tests/libtracker-data/basic/predicate-variable-3.out b/tests/libtracker-data/basic/predicate-variable-3.out
new file mode 100644
index 0000000..508938b
--- /dev/null
+++ b/tests/libtracker-data/basic/predicate-variable-3.out
@@ -0,0 +1,2 @@
+"http://example.org/x/x" "http://example.org/ns#p" "d:x ns:p"
+"http://example.org/x/x" "http://example.org/x/p" "42"
diff --git a/tests/libtracker-data/basic/predicate-variable-3.rq b/tests/libtracker-data/basic/predicate-variable-3.rq
new file mode 100644
index 0000000..cbb889e
--- /dev/null
+++ b/tests/libtracker-data/basic/predicate-variable-3.rq
@@ -0,0 +1,4 @@
+PREFIX ns: <http://example.org/ns#>
+PREFIX x: <http://example.org/x/>
+
+SELECT ?s ?p ?v WHERE { ?s ?p ?v . ?p rdfs:domain x:A } ORDER BY ?s ?p ?v
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 861a53b..4e584a8 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -58,6 +58,7 @@ const TestInfo tests[] = {
{ "basic/base-prefix-3", "basic/data-1", FALSE },
{ "basic/predicate-variable", "basic/data-1", FALSE },
{ "basic/predicate-variable-2", "basic/data-1", FALSE },
+ { "basic/predicate-variable-3", "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]