[tracker/tracker-0.10] tests: Add unit test for IN with >20 elements
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tests: Add unit test for IN with >20 elements
- Date: Tue, 8 Feb 2011 14:34:46 +0000 (UTC)
commit e53fdc2417a7cc6e2ead252ae23237dc5494a53a
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Feb 4 11:40:10 2011 +0100
tests: Add unit test for IN with >20 elements
tests/libtracker-data/algebra/Makefile.am | 2 ++
tests/libtracker-data/algebra/filter-in-5.out | 12 ++++++++++++
tests/libtracker-data/algebra/filter-in-5.rq | 4 ++++
tests/libtracker-data/tracker-sparql-test.c | 1 +
4 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtracker-data/algebra/Makefile.am b/tests/libtracker-data/algebra/Makefile.am
index a30cbfe..ac0ea03 100644
--- a/tests/libtracker-data/algebra/Makefile.am
+++ b/tests/libtracker-data/algebra/Makefile.am
@@ -17,6 +17,8 @@ EXTRA_DIST = \
filter-in-3.rq \
filter-in-4.out \
filter-in-4.rq \
+ filter-in-5.rq \
+ filter-in-5.out \
filter-placement-1.out \
filter-placement-1.rq \
filter-placement-2.out \
diff --git a/tests/libtracker-data/algebra/filter-in-5.out b/tests/libtracker-data/algebra/filter-in-5.out
new file mode 100644
index 0000000..a4cff36
--- /dev/null
+++ b/tests/libtracker-data/algebra/filter-in-5.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-in-5.rq b/tests/libtracker-data/algebra/filter-in-5.rq
new file mode 100644
index 0000000..2e6468e
--- /dev/null
+++ b/tests/libtracker-data/algebra/filter-in-5.rq
@@ -0,0 +1,4 @@
+PREFIX : <http://example/>
+
+SELECT ?v ?t
+{ ?x :p ?v . ?x :q ?t . FILTER(str(?x) IN ('http://example/x',1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23)) . FILTER (str(?t) IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,'http://example/x')) }
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index d97ed96..0c60b60 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -60,6 +60,7 @@ const TestInfo tests[] = {
{ "algebra/filter-in-2", "algebra/data-2", FALSE },
{ "algebra/filter-in-3", "algebra/data-2", FALSE },
{ "algebra/filter-in-4", "algebra/data-2", FALSE },
+ { "algebra/filter-in-5", "algebra/data-2", FALSE },
{ "algebra/var-scope-join-1", "algebra/var-scope-join-1", FALSE },
{ "anon/query", "anon/data", FALSE },
{ "ask/ask-1", "ask/data", FALSE },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]