[tracker/wip/carlosg/more-tests: 2/3] tests: Add fn:upper-case xpath function testcase




commit 57041c92f093c5450c378a7592833ac678d49e7d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Mar 10 23:56:17 2022 +0100

    tests: Add fn:upper-case xpath function testcase

 tests/libtracker-data/functions/functions-xpath-15.out | 1 +
 tests/libtracker-data/functions/functions-xpath-15.rq  | 1 +
 tests/libtracker-data/tracker-sparql-test.c            | 1 +
 3 files changed, 3 insertions(+)
---
diff --git a/tests/libtracker-data/functions/functions-xpath-15.out 
b/tests/libtracker-data/functions/functions-xpath-15.out
new file mode 100644
index 000000000..695aebf78
--- /dev/null
+++ b/tests/libtracker-data/functions/functions-xpath-15.out
@@ -0,0 +1 @@
+"Don't change the h of hallo, it's a special one"      "ḤELLO"
diff --git a/tests/libtracker-data/functions/functions-xpath-15.rq 
b/tests/libtracker-data/functions/functions-xpath-15.rq
new file mode 100644
index 000000000..54a3ba60e
--- /dev/null
+++ b/tests/libtracker-data/functions/functions-xpath-15.rq
@@ -0,0 +1 @@
+SELECT "Don't change the h of hallo, it's a special one" fn:upper-case ("\u1E25ello") {}
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 0e0339dd8..defd60252 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -148,6 +148,7 @@ const TestInfo tests[] = {
        { "functions/functions-xpath-12", "functions/data-4", FALSE },
        { "functions/functions-xpath-13", "functions/data-4", FALSE },
        { "functions/functions-xpath-14", "functions/data-4", FALSE },
+       { "functions/functions-xpath-15", "functions/data-1", FALSE },
        { "functions/functions-coalesce-1", "functions/data-1", FALSE },
        { "functions/functions-datatypes-1", "functions/data-1", FALSE },
        { "functions/functions-datatypes-2", "functions/data-2", FALSE },


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