[tracker] tracker-fts: Add fts3ae test



commit 3dff5112b65ecf81510b3b42e8079efc48c11311
Author: Jürg Billeter <j bitron ch>
Date:   Tue Sep 29 16:08:20 2009 +0200

    tracker-fts: Add fts3ae test

 tests/tracker-fts/Makefile.am        |    5 +++-
 tests/tracker-fts/fts3ae-1.out       |    7 +++++
 tests/tracker-fts/fts3ae-1.rq        |    1 +
 tests/tracker-fts/fts3ae-data.rq     |   45 ++++++++++++++++++++++++++++++++++
 tests/tracker-fts/tracker-fts-test.c |    1 +
 5 files changed, 58 insertions(+), 1 deletions(-)
---
diff --git a/tests/tracker-fts/Makefile.am b/tests/tracker-fts/Makefile.am
index 60ccb6c..9fa6c92 100644
--- a/tests/tracker-fts/Makefile.am
+++ b/tests/tracker-fts/Makefile.am
@@ -41,5 +41,8 @@ EXTRA_DIST = 				\
 	fts3aa-1.rq			\
 	fts3aa-1.out			\
 	fts3aa-2.rq			\
-	fts3aa-2.out
+	fts3aa-2.out			\
+	fts3ae-data.rq			\
+	fts3ae-1.rq			\
+	fts3ae-1.out
 
diff --git a/tests/tracker-fts/fts3ae-1.out b/tests/tracker-fts/fts3ae-1.out
new file mode 100644
index 0000000..7ba6885
--- /dev/null
+++ b/tests/tracker-fts/fts3ae-1.out
@@ -0,0 +1,7 @@
+"http://www.example.org/test#3";
+"http://www.example.org/test#5";
+"http://www.example.org/test#9";
+"http://www.example.org/test#11";
+"http://www.example.org/test#15";
+"http://www.example.org/test#17";
+"http://www.example.org/test#21";
diff --git a/tests/tracker-fts/fts3ae-1.rq b/tests/tracker-fts/fts3ae-1.rq
new file mode 100644
index 0000000..2b7f448
--- /dev/null
+++ b/tests/tracker-fts/fts3ae-1.rq
@@ -0,0 +1 @@
+SELECT ?o WHERE { ?o fts:match "one" }
diff --git a/tests/tracker-fts/fts3ae-data.rq b/tests/tracker-fts/fts3ae-data.rq
new file mode 100644
index 0000000..6f59851
--- /dev/null
+++ b/tests/tracker-fts/fts3ae-data.rq
@@ -0,0 +1,45 @@
+INSERT {
+	test:1 a test:A ; test:p "one" .
+	test:2 a test:A ; test:p "two" .
+	test:3 a test:A ; test:p "one two" .
+	test:4 a test:A ; test:p "three" .
+}
+DELETE { test:1 a rdfs:Resource }
+INSERT {
+	test:5 a test:A ; test:p "one three" .
+	test:6 a test:A ; test:p "two three" .
+	test:7 a test:A ; test:p "one two three" .
+}
+DELETE { test:4 a rdfs:Resource }
+INSERT {
+	test:8 a test:A ; test:p "four" .
+	test:9 a test:A ; test:p "one four" .
+	test:10 a test:A ; test:p "two four" .
+}
+DELETE { test:7 a rdfs:Resource }
+INSERT {
+	test:11 a test:A ; test:p "one two four" .
+	test:12 a test:A ; test:p "three four" .
+	test:13 a test:A ; test:p "one three four" .
+}
+DELETE { test:10 a rdfs:Resource }
+INSERT {
+	test:14 a test:A ; test:p "two three four" .
+	test:15 a test:A ; test:p "one two three four" .
+	test:16 a test:A ; test:p "five" .
+}
+DELETE { test:13 a rdfs:Resource }
+INSERT {
+	test:17 a test:A ; test:p "one five" .
+	test:18 a test:A ; test:p "two five" .
+	test:19 a test:A ; test:p "one two five" .
+}
+DELETE { test:16 a rdfs:Resource }
+INSERT {
+	test:20 a test:A ; test:p "three five" .
+	test:21 a test:A ; test:p "one three five" .
+	test:22 a test:A ; test:p "two three five" .
+}
+DELETE { test:19 a rdfs:Resource }
+DELETE { test:22 a rdfs:Resource }
+
diff --git a/tests/tracker-fts/tracker-fts-test.c b/tests/tracker-fts/tracker-fts-test.c
index 02bd3c0..8405367 100644
--- a/tests/tracker-fts/tracker-fts-test.c
+++ b/tests/tracker-fts/tracker-fts-test.c
@@ -40,6 +40,7 @@ struct _TestInfo {
 
 const TestInfo tests[] = {
 	{ "fts3aa", 2 },
+	{ "fts3ae", 1 },
 	{ NULL }
 };
 



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