[tracker/wip/carlosg/fts5-syntax-under-the-rug] tests: Add FTS tests for some extraneous input
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/fts5-syntax-under-the-rug] tests: Add FTS tests for some extraneous input
- Date: Thu, 3 Sep 2020 17:07:47 +0000 (UTC)
commit 91676e6b96a2c7f2ea1f349f6b05884da8a196cc
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Sep 3 19:06:11 2020 +0200
tests: Add FTS tests for some extraneous input
Test dots and quotes in input so far.
tests/libtracker-fts/input/fts3input-1.out | 1 +
tests/libtracker-fts/input/fts3input-1.rq | 1 +
tests/libtracker-fts/input/fts3input-2.out | 1 +
tests/libtracker-fts/input/fts3input-2.rq | 1 +
tests/libtracker-fts/input/fts3input-3.out | 2 ++
tests/libtracker-fts/input/fts3input-3.rq | 1 +
tests/libtracker-fts/input/fts3input-data.rq | 4 ++++
tests/libtracker-fts/tracker-fts-test.c | 1 +
8 files changed, 12 insertions(+)
---
diff --git a/tests/libtracker-fts/input/fts3input-1.out b/tests/libtracker-fts/input/fts3input-1.out
new file mode 100644
index 000000000..db6765d23
--- /dev/null
+++ b/tests/libtracker-fts/input/fts3input-1.out
@@ -0,0 +1 @@
+"http://www.example.org/test#1"
diff --git a/tests/libtracker-fts/input/fts3input-1.rq b/tests/libtracker-fts/input/fts3input-1.rq
new file mode 100644
index 000000000..8d6c237fb
--- /dev/null
+++ b/tests/libtracker-fts/input/fts3input-1.rq
@@ -0,0 +1 @@
+SELECT ?u { ?u fts:match "abc.def" }
diff --git a/tests/libtracker-fts/input/fts3input-2.out b/tests/libtracker-fts/input/fts3input-2.out
new file mode 100644
index 000000000..db6765d23
--- /dev/null
+++ b/tests/libtracker-fts/input/fts3input-2.out
@@ -0,0 +1 @@
+"http://www.example.org/test#1"
diff --git a/tests/libtracker-fts/input/fts3input-2.rq b/tests/libtracker-fts/input/fts3input-2.rq
new file mode 100644
index 000000000..de51c164b
--- /dev/null
+++ b/tests/libtracker-fts/input/fts3input-2.rq
@@ -0,0 +1 @@
+SELECT ?u { ?u fts:match 'abc def' }
diff --git a/tests/libtracker-fts/input/fts3input-3.out b/tests/libtracker-fts/input/fts3input-3.out
new file mode 100644
index 000000000..4025328ab
--- /dev/null
+++ b/tests/libtracker-fts/input/fts3input-3.out
@@ -0,0 +1,2 @@
+"http://www.example.org/test#1"
+"http://www.example.org/test#2"
diff --git a/tests/libtracker-fts/input/fts3input-3.rq b/tests/libtracker-fts/input/fts3input-3.rq
new file mode 100644
index 000000000..56fb9ef4c
--- /dev/null
+++ b/tests/libtracker-fts/input/fts3input-3.rq
@@ -0,0 +1 @@
+SELECT ?u { ?u fts:match '"abc"' }
diff --git a/tests/libtracker-fts/input/fts3input-data.rq b/tests/libtracker-fts/input/fts3input-data.rq
new file mode 100644
index 000000000..761884b10
--- /dev/null
+++ b/tests/libtracker-fts/input/fts3input-data.rq
@@ -0,0 +1,4 @@
+INSERT {
+ test:1 a test:A ; test:p "abc.def" .
+ test:2 a test:A ; test:p "\"abc\" \"hij\"" .
+}
diff --git a/tests/libtracker-fts/tracker-fts-test.c b/tests/libtracker-fts/tracker-fts-test.c
index 584609bff..edac25010 100644
--- a/tests/libtracker-fts/tracker-fts-test.c
+++ b/tests/libtracker-fts/tracker-fts-test.c
@@ -40,6 +40,7 @@ const TestInfo tests[] = {
{ "fts3ae", 1 },
{ "prefix/fts3prefix", 3 },
{ "limits/fts3limits", 4 },
+ { "input/fts3input", 3 },
{ NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]