[tracker/wip/carlosg/fix-tracker-search: 11/11] tests: Add test for coalesce behavior with URNs
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/fix-tracker-search: 11/11] tests: Add test for coalesce behavior with URNs
- Date: Sat, 17 Nov 2018 15:29:36 +0000 (UTC)
commit f0b22f553b9ef944e6ff13fa8e34e9e6b81c8fa6
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 17 15:57:40 2018 +0100
tests: Add test for coalesce behavior with URNs
tests/libtracker-data/functions/functions-coalesce-1.out | 1 +
tests/libtracker-data/functions/functions-coalesce-1.rq | 1 +
tests/libtracker-data/tracker-sparql-test.c | 1 +
3 files changed, 3 insertions(+)
---
diff --git a/tests/libtracker-data/functions/functions-coalesce-1.out
b/tests/libtracker-data/functions/functions-coalesce-1.out
new file mode 100644
index 000000000..eb046bba9
--- /dev/null
+++ b/tests/libtracker-data/functions/functions-coalesce-1.out
@@ -0,0 +1 @@
+"http://www.w3.org/2001/XMLSchema#string" "foo" "http://www.w3.org/2001/XMLSchema#string" "bar"
diff --git a/tests/libtracker-data/functions/functions-coalesce-1.rq
b/tests/libtracker-data/functions/functions-coalesce-1.rq
new file mode 100644
index 000000000..9fbec1daa
--- /dev/null
+++ b/tests/libtracker-data/functions/functions-coalesce-1.rq
@@ -0,0 +1 @@
+SELECT COALESCE(xsd:string, "foo") COALESCE("foo", xsd:string) tracker:coalesce(xsd:string, "bar")
tracker:coalesce("bar", xsd:string) {}
\ No newline at end of file
diff --git a/tests/libtracker-data/tracker-sparql-test.c b/tests/libtracker-data/tracker-sparql-test.c
index 372b80548..3982fc125 100644
--- a/tests/libtracker-data/tracker-sparql-test.c
+++ b/tests/libtracker-data/tracker-sparql-test.c
@@ -111,6 +111,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-coalesce-1", "functions/data-1", FALSE },
{ "graph/graph-1", "graph/data-1", FALSE },
{ "graph/graph-2", "graph/data-2", FALSE },
{ "graph/graph-3", "graph/data-3", FALSE },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]