[tracker] libtracker-data: Add test for FILTER in group graph pattern
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Add test for FILTER in group graph pattern
- Date: Tue, 8 Jun 2010 13:50:56 +0000 (UTC)
commit f801867e965f919222a8eb87cf4c877e9ca85322
Author: Jürg Billeter <j bitron ch>
Date: Tue Jun 8 15:29:50 2010 +0200
libtracker-data: Add test for FILTER in group graph pattern
tests/libtracker-data/algebra/Makefile.am | 2 ++
.../algebra/filter-placement-3a.out | 1 +
.../libtracker-data/algebra/filter-placement-3a.rq | 11 +++++++++++
tests/libtracker-data/tracker-sparql-test.c | 1 +
4 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-data/algebra/Makefile.am b/tests/libtracker-data/algebra/Makefile.am
index e3ea7cd..c75b7bd 100644
--- a/tests/libtracker-data/algebra/Makefile.am
+++ b/tests/libtracker-data/algebra/Makefile.am
@@ -15,6 +15,8 @@ EXTRA_DIST = \
filter-placement-2.rq \
filter-placement-3.out \
filter-placement-3.rq \
+ filter-placement-3a.out \
+ filter-placement-3a.rq \
filter-scope-1.out \
filter-scope-1.rq \
opt-filter-3.ontology \
diff --git a/tests/libtracker-data/algebra/filter-placement-3a.out b/tests/libtracker-data/algebra/filter-placement-3a.out
new file mode 100644
index 0000000..e631bb3
--- /dev/null
+++ b/tests/libtracker-data/algebra/filter-placement-3a.out
@@ -0,0 +1 @@
+"2" "3"
diff --git a/tests/libtracker-data/algebra/filter-placement-3a.rq b/tests/libtracker-data/algebra/filter-placement-3a.rq
new file mode 100644
index 0000000..d79eddd
--- /dev/null
+++ b/tests/libtracker-data/algebra/filter-placement-3a.rq
@@ -0,0 +1,11 @@
+PREFIX : <http://example/>
+
+SELECT ?v ?w
+{
+ FILTER (?v = 2)
+ FILTER (?w = 3)
+ {
+ ?s :p ?v .
+ ?s :q ?w .
+ }
+}
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index ed01199..3e2d409 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -51,6 +51,7 @@ const TestInfo tests[] = {
{ "algebra/filter-placement-1", "algebra/data-2", FALSE },
{ "algebra/filter-placement-2", "algebra/data-2", FALSE },
{ "algebra/filter-placement-3", "algebra/data-2", FALSE },
+ { "algebra/filter-placement-3a", "algebra/data-2", FALSE },
{ "algebra/filter-nested-1", "algebra/data-1", FALSE },
{ "algebra/filter-nested-2", "algebra/data-1", FALSE },
{ "algebra/filter-scope-1", "algebra/data-2", FALSE },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]