[tracker/wip/carlosg/sparql-parser-ng: 39/43] tests: Add an FTS test



commit 6daae6088700c5da40f06b990954b18971c00f28
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Nov 3 13:04:59 2018 +0100

    tests: Add an FTS test
    
    This query form was broken in the previous parser, add a test for it
    now that it is supported.

 tests/libtracker-fts/fts3aa-3.out       | 1 +
 tests/libtracker-fts/fts3aa-3.rq        | 1 +
 tests/libtracker-fts/tracker-fts-test.c | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/tests/libtracker-fts/fts3aa-3.out b/tests/libtracker-fts/fts3aa-3.out
new file mode 100644
index 000000000..2722bd529
--- /dev/null
+++ b/tests/libtracker-fts/fts3aa-3.out
@@ -0,0 +1 @@
+"one two three four five"
diff --git a/tests/libtracker-fts/fts3aa-3.rq b/tests/libtracker-fts/fts3aa-3.rq
new file mode 100644
index 000000000..ef415e0a0
--- /dev/null
+++ b/tests/libtracker-fts/fts3aa-3.rq
@@ -0,0 +1 @@
+select ?s { test:31 fts:match 'three' ; test:p ?s }
\ No newline at end of file
diff --git a/tests/libtracker-fts/tracker-fts-test.c b/tests/libtracker-fts/tracker-fts-test.c
index b20b64e37..b389c281b 100644
--- a/tests/libtracker-fts/tracker-fts-test.c
+++ b/tests/libtracker-fts/tracker-fts-test.c
@@ -36,7 +36,7 @@ struct _TestInfo {
 };
 
 const TestInfo tests[] = {
-       { "fts3aa", 2 },
+       { "fts3aa", 3 },
        { "fts3ae", 1 },
        { "prefix/fts3prefix", 3 },
        { "limits/fts3limits", 4 },


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