[tracker/parser] libtracker-data: Add algebra/filter-scope-1 test
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/parser] libtracker-data: Add algebra/filter-scope-1 test
- Date: Fri, 14 Aug 2009 10:05:22 +0000 (UTC)
commit 296fed553dfab209b7b62817f926ef33bf951dba
Author: Jürg Billeter <j bitron ch>
Date: Fri Aug 14 11:57:46 2009 +0200
libtracker-data: Add algebra/filter-scope-1 test
tests/libtracker-data/algebra/filter-scope-1.out | 12 ++++++++++++
tests/libtracker-data/algebra/filter-scope-1.rq | 9 +++++++++
tests/libtracker-data/tracker-sparql-test.c | 1 +
3 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-data/algebra/filter-scope-1.out b/tests/libtracker-data/algebra/filter-scope-1.out
new file mode 100644
index 0000000..c88c6b1
--- /dev/null
+++ b/tests/libtracker-data/algebra/filter-scope-1.out
@@ -0,0 +1,12 @@
+"1" "1"
+"1" "2"
+"1" "3"
+"2" "1"
+"2" "2"
+"2" "3"
+"3" "1"
+"3" "2"
+"3" "3"
+"4" "1"
+"4" "2"
+"4" "3"
diff --git a/tests/libtracker-data/algebra/filter-scope-1.rq b/tests/libtracker-data/algebra/filter-scope-1.rq
new file mode 100644
index 0000000..7ee5a24
--- /dev/null
+++ b/tests/libtracker-data/algebra/filter-scope-1.rq
@@ -0,0 +1,9 @@
+PREFIX : <http://example/>
+
+SELECT ?v ?w ?v2
+{
+ :x :p ?v .
+ { :x :q ?w
+ OPTIONAL { :x :p ?v2 FILTER(?v = 1) }
+ }
+}
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 0fb9ea0..49bf59f 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -48,6 +48,7 @@ const TestInfo tests[] = {
{ "algebra/filter-placement-3", "algebra/data-2" },
{ "algebra/filter-nested-1", "algebra/data-1" },
{ "algebra/filter-nested-2", "algebra/data-1" },
+ { "algebra/filter-scope-1", "algebra/data-2" },
{ "bnode-coreference/query", "bnode-coreference/data" },
{ "bound/bound1", "bound/data" },
{ "expr-ops/query-ge-1", "expr-ops/data" },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]